emustatus-as-ptr bugfix
authornotaz <notasas@gmail.com>
Thu, 27 Sep 2007 21:01:11 +0000 (21:01 +0000)
committernotaz <notasas@gmail.com>
Thu, 27 Sep 2007 21:01:11 +0000 (21:01 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@264 be3aeb3a-fb24-0410-a615-afba39da0efa

Pico/Memory.s

index 5555ac3..93c503d 100644 (file)
@@ -891,7 +891,8 @@ m_write8_z80_not_ram:
     ldr     r2, =emustatus\r
     ldmfd   sp!,{lr}\r
     ldr     r1, [r2]\r
-    orr     r1, r0, r2\r
+    and     r0, r0, #1\r
+    orr     r1, r0, r1\r
     str     r1, [r2]         @ emustatus|=YM2612Write(a&3, d);\r
     bx      lr\r
 \r