]> git.sur5r.net Git - cc65/commitdiff
additional fix for scrambled code (sorry)
authorIrgendwerA8 <c.krueger.b@web.de>
Sat, 18 Mar 2017 15:56:36 +0000 (16:56 +0100)
committerIrgendwerA8 <c.krueger.b@web.de>
Sat, 18 Mar 2017 15:56:36 +0000 (16:56 +0100)
src/sim65/6502.c

index bd5abcac7a9c8391d23647d0ae3292d2c4886c39..af82f00f7bf171bec64251137bae59dc9fe10593 100644 (file)
@@ -865,7 +865,7 @@ static void OPC_65SC02_3C (void)
     unsigned Addr;
     unsigned char Val;
     Cycles = 4;
-    Addr = MemReadByte (Regs.PC+1);
+    Addr = MemReadWord (Regs.PC+1);
     if (PAGE_CROSS (Addr, Regs.XR))
         ++Cycles;
     Val  = MemReadByte (Addr + Regs.XR);