From 221ef1233ba982307f3cd6b62d4279f552e17a27 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 16 Feb 2021 11:33:03 -0500 Subject: m740: Fix calculation of destination address for disassembly of BBC/BBS n, A, rel --- src/devices/cpu/m6502/m6502d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3