]> git.sur5r.net Git - cc65/commitdiff
Fixed bug in original sim65 implementation (reason for C&P error in last commit)
authorIrgendwerA8 <c.krueger.b@web.de>
Sat, 18 Mar 2017 16:02:22 +0000 (17:02 +0100)
committerIrgendwerA8 <c.krueger.b@web.de>
Sat, 18 Mar 2017 16:02:22 +0000 (17:02 +0100)
src/sim65/6502.c

index af82f00f7bf171bec64251137bae59dc9fe10593..9963342955580f72e88ea64454c53a8ae18f08b9 100644 (file)
@@ -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);