m6809: Mask PCR-mode addresses in disassembly

This commit is contained in:
AJR 2024-10-30 11:46:37 -04:00
parent 740f45c7a5
commit 0b54013387

View file

@ -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