From 7cf270f02a7fe911d36d2a0afcb64cea62e69cfe Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 10 Aug 2019 11:17:14 -0400 Subject: r65c02: Don't throw away the branch offset for BBR and BBS (nw) --- src/devices/cpu/m6502/om65c02.lst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/m6502/om65c02.lst b/src/devices/cpu/m6502/om65c02.lst index 61fadeebf93..25d8fc7ef07 100644 --- a/src/devices/cpu/m6502/om65c02.lst +++ b/src/devices/cpu/m6502/om65c02.lst @@ -161,7 +161,7 @@ bbr_zpb TMP = read_pc(); TMP2 = read(TMP); read(TMP); - read_pc_noinc(); + TMP = read_pc(); if(!(TMP2 & (1 << ((inst_state >> 4) & 7)))) { PC += int8_t(TMP); } @@ -171,7 +171,7 @@ bbs_zpb TMP = read_pc(); TMP2 = read(TMP); read(TMP); - read_pc_noinc(); + TMP = read_pc(); if(TMP2 & (1 << ((inst_state >> 4) & 7))) { PC += int8_t(TMP); } -- cgit v1.2.3