From 1939fc2ffe0a08dbed1230e6d05b40d670f608a9 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 22 May 2022 20:47:56 -0400 Subject: pdp8: Have disassembler comment on instructions using memory reference instructions using current page mode in page zero --- src/devices/cpu/pdp8/pdp8dasm.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/devices/cpu/pdp8/pdp8dasm.cpp b/src/devices/cpu/pdp8/pdp8dasm.cpp index ad7a886ff0e..4230eb9f20a 100644 --- a/src/devices/cpu/pdp8/pdp8dasm.cpp +++ b/src/devices/cpu/pdp8/pdp8dasm.cpp @@ -127,11 +127,17 @@ void pdp8_disassembler::dasm_memory_reference(std::ostream &stream, u16 inst, of { stream << " /AUTO-INDEX"; if (BIT(inst, 7)) - stream << "?"; // IM6100 does no auto-indexing in this case + stream << " OR CURRENT PAGE"; // IM6100 does no auto-indexing in this case } + else if (BIT(inst, 7) && (pc & 07600) == 0) + stream << " /CURRENT PAGE"; } else + { util::stream_format(stream, " %04o", addr); + if (BIT(inst, 7) && (pc & 07600) == 0) + stream << " /CURRENT PAGE"; + } } offs_t pdp8_disassembler::dasm_iot(std::ostream &stream, u16 dev, offs_t pc) -- cgit v1.2.3