Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Jun 24, 2024
1 parent 5bf9f4d commit ba67467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ bool cpu::double_operand_instructions(const uint16_t instr)
if (word_mode == wm_byte && dst_mode == 0)
setRegister(dst_reg, int8_t(g_src.value.value())); // int8_t: sign extension
else {
auto g_dst = getGAM(dst_mode, dst_reg, word_mode, rm_cur, false);
auto g_dst = getGAMAddress(dst_mode, dst_reg, word_mode);
addToMMR1(g_dst);

set_flags = putGAM(g_dst, g_src.value.value());
Expand Down Expand Up @@ -1017,7 +1017,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
set_flags = true;
}
else {
auto g_dst = getGAM(dst_mode, dst_reg, word_mode, rm_cur, false);
auto g_dst = getGAMAddress(dst_mode, dst_reg, word_mode);
addToMMR1(g_dst);

set_flags = putGAM(g_dst, 0);
Expand Down

0 comments on commit ba67467

Please sign in to comment.