diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-08-10 11:17:14 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-08-10 11:18:03 -0400 |
commit | 7cf270f02a7fe911d36d2a0afcb64cea62e69cfe (patch) | |
tree | 0af212c8ff605800679f62cde361c0370814f2db | |
parent | 873fafbbc288ac560fda689ed25daf443fdfced0 (diff) |
r65c02: Don't throw away the branch offset for BBR and BBS (nw)
-rw-r--r-- | src/devices/cpu/m6502/om65c02.lst | 4 |
1 files 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); } |