Fix for XOR R7/PC,...
This commit is contained in:
parent
d81f7eec66
commit
a57d89a045
1 changed files with 2 additions and 1 deletions
3
cpu.cpp
3
cpu.cpp
|
@ -716,8 +716,9 @@ bool cpu::additional_double_operand_instructions(const uint16_t instr)
|
|||
}
|
||||
|
||||
case 4: { // XOR (word only)
|
||||
uint16_t reg_v = getRegister(reg); // in case it is R7
|
||||
auto g_dst = getGAM(dst_mode, dst_reg, false, false);
|
||||
uint16_t vl = g_dst.value.value() ^ getRegister(reg);
|
||||
uint16_t vl = g_dst.value.value() ^ reg_v;
|
||||
|
||||
bool set_flags = putGAM(g_dst, vl);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue