diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-01-08 13:11:29 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-01-08 13:12:15 -0500 |
commit | 27d116cfcc33c8e2374c6dcf59034475007427bd (patch) | |
tree | 8fdd20007c64d94ee524f154f187f9365e06f786 | |
parent | 3b79e284546ed988686413cf1891f2f95528637d (diff) |
m6809: Fix disassembly of relative instructions
-rw-r--r-- | src/devices/cpu/m6809/6x09dasm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/m6809/6x09dasm.cpp b/src/devices/cpu/m6809/6x09dasm.cpp index e3994c1f336..393eba18998 100644 --- a/src/devices/cpu/m6809/6x09dasm.cpp +++ b/src/devices/cpu/m6809/6x09dasm.cpp @@ -189,12 +189,12 @@ offs_t m6x09_base_disassembler::disassemble(std::ostream &stream, offs_t pc, con case REL: offset = (int8_t)params.r8(ppc); - util::stream_format(stream, "$%04X", (pc + offset) & 0xffff); + util::stream_format(stream, "$%04X", (pc + op->length() + offset) & 0xffff); break; case LREL: offset = (int16_t)params.r16(ppc); - util::stream_format(stream, "$%04X", (pc + offset) & 0xffff); + util::stream_format(stream, "$%04X", (pc + op->length() + offset) & 0xffff); break; case EXT: |