Fix for switching between D and I address apce

This commit is contained in:
folkert van heusden 2024-04-29 23:25:40 +02:00
parent de11878e8b
commit 1e3c686aec
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -1389,6 +1389,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
addToMMR1(a); addToMMR1(a);
// read from previous space // read from previous space
// FIXME: address space selection (see MTPI/D)
v = b->read(a.addr.value(), wm_word, rm_prev); 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()); b->mmudebug(a.addr.value());
a.mode_selection = rm_prev; a.mode_selection = rm_prev;
a.space = word_mode == wm_byte ? d_space : i_space;
set_flags = putGAM(a, v); set_flags = putGAM(a, v);
} }