Skip to content

Commit

Permalink
Fix for switching between D and I address space (MFP.)
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Apr 29, 2024
1 parent 1e3c686 commit ae0672d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +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);
v = b->read(a.addr.value(), wm_word, rm_prev, false, word_mode == wm_byte ? d_space : i_space);
}

setPSW_flags_nzv(v, wm_word);
Expand Down

0 comments on commit ae0672d

Please sign in to comment.