From c23f264fe456c27ecef382d6d1e3e579eb40c7cd Mon Sep 17 00:00:00 2001 From: prandeamus Date: Sat, 13 Jan 2018 18:30:53 +0000 Subject: [PATCH 1/3] Call ParaVirtHooks on JMP (indirect) --- src/sim65/6502.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim65/6502.c b/src/sim65/6502.c index 1febef657..bf8033f40 100644 --- a/src/sim65/6502.c +++ b/src/sim65/6502.c @@ -1266,6 +1266,8 @@ static void OPC_6502_6C (void) Cycles = 6; Regs.PC = MemReadWord(Lo); } + + ParaVirtHooks (&Regs); } From 009f56afb6b26e12b18aeb8e38cf9521590d5ebf Mon Sep 17 00:00:00 2001 From: prandeamus Date: Sat, 13 Jan 2018 22:42:39 +0000 Subject: [PATCH 2/3] 65C02 version too. --- src/sim65/6502.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim65/6502.c b/src/sim65/6502.c index bf8033f40..e1d313f93 100644 --- a/src/sim65/6502.c +++ b/src/sim65/6502.c @@ -1278,6 +1278,8 @@ static void OPC_65C02_6C (void) /* 6502 bug fixed here */ Cycles = 5; Regs.PC = MemReadWord (MemReadWord (Regs.PC+1)); + + ParaVirtHooks (&Regs); } From 1a95be9c3a28c0f5423f39564d968effd48351cb Mon Sep 17 00:00:00 2001 From: prandeamus Date: Sun, 14 Jan 2018 19:42:29 +0000 Subject: [PATCH 3/3] 65C02 JMP (ind,x) opcode 7C --- src/sim65/6502.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim65/6502.c b/src/sim65/6502.c index e1d313f93..0d0adbf8b 100644 --- a/src/sim65/6502.c +++ b/src/sim65/6502.c @@ -1434,6 +1434,8 @@ static void OPC_65SC02_7C (void) PC = Regs.PC; Adr = MemReadWord (PC+1); Regs.PC = MemReadWord(Adr+Regs.XR); + + ParaVirtHooks (&Regs); }