summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m6502d.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-02-16 11:33:03 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-02-16 11:33:19 -0500
commit221ef1233ba982307f3cd6b62d4279f552e17a27 (patch)
tree31a0de64daa4203417de18012964c628ca9051dd /src/devices/cpu/m6502/m6502d.cpp
parentbb1e4db26a0ccb93e32dae45ee1e6891f09ba194 (diff)
m740: Fix calculation of destination address for disassembly of BBC/BBS n, A, rel
Diffstat (limited to 'src/devices/cpu/m6502/m6502d.cpp')
-rw-r--r--src/devices/cpu/m6502/m6502d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/m6502/m6502d.cpp b/src/devices/cpu/m6502/m6502d.cpp
index 5213c198a5f..f299f77cfc6 100644
--- a/src/devices/cpu/m6502/m6502d.cpp
+++ b/src/devices/cpu/m6502/m6502d.cpp
@@ -192,7 +192,7 @@ offs_t m6502_base_disassembler::disassemble(std::ostream &stream, offs_t pc, con
break;
case DASM_bar:
- util::stream_format(stream, " %d, a, $%04x", (opcodes.r8(pc) >> 5) & 7, (pc & 0xf0000) | uint16_t(pc + 3 + int8_t(params.r8(pc+1))));
+ util::stream_format(stream, " %d, a, $%04x", (opcodes.r8(pc) >> 5) & 7, (pc & 0xf0000) | uint16_t(pc + 2 + int8_t(params.r8(pc+1))));
flags |= 2;
break;