mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
m6809: Fix disassembly of relative instructions
This commit is contained in:
parent
3b79e28454
commit
27d116cfcc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user