From: IrgendwerA8 Date: Sat, 18 Mar 2017 16:02:22 +0000 (+0100) Subject: Fixed bug in original sim65 implementation (reason for C&P error in last commit) X-Git-Tag: V2.16~25^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0985655ac748656b7f7d80fa3695bd21a4fdf6f9;p=cc65 Fixed bug in original sim65 implementation (reason for C&P error in last commit) --- diff --git a/src/sim65/6502.c b/src/sim65/6502.c index af82f00f7..996334295 100644 --- a/src/sim65/6502.c +++ b/src/sim65/6502.c @@ -1447,7 +1447,7 @@ static void OPC_6502_7E (void) unsigned Addr; unsigned Val; Cycles = 7; - Addr = MemReadByte (Regs.PC+1) + Regs.XR; + Addr = MemReadWord (Regs.PC+1) + Regs.XR; Val = MemReadByte (Addr); ROR (Val); MemWriteByte (Addr, Val);