mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
m6809: Mask PCR-mode addresses in disassembly
This commit is contained in:
parent
740f45c7a5
commit
0b54013387
1 changed files with 2 additions and 2 deletions
|
@ -993,13 +993,13 @@ void m6x09_disassembler::indexed(std::ostream &stream, uint8_t pb, const data_bu
|
|||
|
||||
case 0x8c: // (+/- 7 bit offset),PC
|
||||
offset = (int8_t)params.r8(p++);
|
||||
util::stream_format(stream, "$%04X,PCR", (p+offset)); // PC Relative addressing (assembler computes offset from specified absolute address)
|
||||
util::stream_format(stream, "$%04X,PCR", (p+offset) & 0xffff); // PC Relative addressing (assembler computes offset from specified absolute address)
|
||||
break;
|
||||
|
||||
case 0x8d: // (+/- 15 bit offset),PC
|
||||
offset = (int16_t)params.r16(p);
|
||||
p += 2;
|
||||
util::stream_format(stream, "$%04X,PCR", (p+offset)); // PC Relative addressing (assembler computes offset from specified absolute address)
|
||||
util::stream_format(stream, "$%04X,PCR", (p+offset) & 0xffff); // PC Relative addressing (assembler computes offset from specified absolute address)
|
||||
break;
|
||||
|
||||
case 0x8e: // (+/- W),R
|
||||
|
|
Loading…
Reference in a new issue