From: IrgendwerA8 Date: Sat, 18 Mar 2017 15:56:36 +0000 (+0100) Subject: additional fix for scrambled code (sorry) X-Git-Tag: V2.16~25^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c50e4d25e20ddae2384a8d8a6a6d55e75c4836ec;p=cc65 additional fix for scrambled code (sorry) --- diff --git a/src/sim65/6502.c b/src/sim65/6502.c index bd5abcac7..af82f00f7 100644 --- a/src/sim65/6502.c +++ b/src/sim65/6502.c @@ -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);