Timeline for Challenge: Write a piece of code that quits itself
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2014 at 14:03 | comment | added | seequ | Man, I'm so grateful to you. I had never heard about Core War. | |
| Dec 29, 2013 at 20:12 | comment | added | Ilmari Karonen | The syntax is MOV source, dest. But as I said, all addressing in Redcode is relative, so the address 0 actually means "the address of this instruction", while the address 1 actually means "the address of this instruction + 1". (And the absolute address 0 isn't in any way special in Redcode anyway; in fact, one interesting consequence of the "all relative addressing" design is that it's actually impossible for a Redcode program to find its own absolute address in the core!) | |
| Dec 29, 2013 at 19:44 | comment | added | Danny Varod | Does MOV 1, 0 copy 1 into address 0 or the other way around? In all the assembler languages I know address 0 is illegal (NULL address). | |
| Dec 29, 2013 at 17:27 | history | edited | Ilmari Karonen | CC BY-SA 3.0 | link to some MARSes |
| Dec 29, 2013 at 16:22 | comment | added | Ilmari Karonen | Access violation? What manner of strange thing is that? (Seriously, Redcode runs in a pretty abstract VM. All addressing is relative, the address space is contiguous (and cyclic) and every address is valid.) | |
| Dec 29, 2013 at 6:38 | comment | added | Danny Varod | Won'tthis simply throw an access violation? | |
| Dec 29, 2013 at 4:34 | history | answered | Ilmari Karonen | CC BY-SA 3.0 |