Fix for switching between D and I address apce
This commit is contained in:
parent
de11878e8b
commit
1e3c686aec
1 changed files with 2 additions and 0 deletions
2
cpu.cpp
2
cpu.cpp
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue