From: notaz Date: Thu, 27 Sep 2007 21:01:11 +0000 (+0000) Subject: emustatus-as-ptr bugfix X-Git-Tag: v1.85~654 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=471484e4c225ba017004b90a632918e40793d41e;p=picodrive.git emustatus-as-ptr bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive@264 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/Pico/Memory.s b/Pico/Memory.s index 5555ac31..93c503d5 100644 --- a/Pico/Memory.s +++ b/Pico/Memory.s @@ -891,7 +891,8 @@ m_write8_z80_not_ram: ldr r2, =emustatus ldmfd sp!,{lr} ldr r1, [r2] - orr r1, r0, r2 + and r0, r0, #1 + orr r1, r0, r1 str r1, [r2] @ emustatus|=YM2612Write(a&3, d); bx lr