mappum / DCPU-16

:floppy_disk: A javascript emulator for DCPU-16 (the computer system in Mojang's new game, 0x10c). Works in browsers and Node.
http://mappum.github.com/DCPU-16/
94 stars 18 forks source link

Cannot write to ram values under [0x001f] #30

Closed DanielKeogh closed 12 years ago

DanielKeogh commented 12 years ago

See title. Creating a function that attempts to write to those values does nothing. 0x1111 set [0x001f] 0x1111 does not work

set [0x0020] 0x1111 does work.

Twisol commented 12 years ago

Experimentation also shows that this

set [0x001e] 0x1111
set A, [0x001e]

leaves A with 0x001e rather than 0x1111. This occurs for any address <= 0x001f.

mappum commented 12 years ago

Thank you, this issue is now fixed.

SET [0x001f] 0x1111 now outputs

======= RAM: ======= 0000:*7de1*001f 1111[0000]0000 0000 0000 0000 0018: 0000 0000 0000 0000 0000 0000 0000 1111

and

set [0x001e] 0x1111 set A, [0x001e]

outputs with A at 0x1111.