From 1e3c686aecdf7ab6fd96cfc4d9ffeefa45836cbc Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Mon, 29 Apr 2024 23:25:40 +0200 Subject: [PATCH] Fix for switching between D and I address apce --- cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index 29fcca1..bf5d56b 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1389,6 +1389,7 @@ bool cpu::single_operand_instructions(const uint16_t instr) addToMMR1(a); // read from previous space + // FIXME: address space selection (see MTPI/D) v = b->read(a.addr.value(), wm_word, rm_prev); } @@ -1415,6 +1416,7 @@ bool cpu::single_operand_instructions(const uint16_t instr) b->mmudebug(a.addr.value()); a.mode_selection = rm_prev; + a.space = word_mode == wm_byte ? d_space : i_space; set_flags = putGAM(a, v); }