From 0985655ac748656b7f7d80fa3695bd21a4fdf6f9 Mon Sep 17 00:00:00 2001 From: IrgendwerA8 Date: Sat, 18 Mar 2017 17:02:22 +0100 Subject: [PATCH] Fixed bug in original sim65 implementation (reason for C&P error in last commit) --- src/sim65/6502.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5