ADC v flag fix
This commit is contained in:
parent
710cf2bbad
commit
ff8f8be672
1 changed files with 1 additions and 1 deletions
2
cpu.cpp
2
cpu.cpp
|
@ -1011,7 +1011,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
|
||||
setPSW_n(SIGN(v, word_mode));
|
||||
setPSW_z(IS_0(v, word_mode));
|
||||
setPSW_v((word_mode ? (vo & 0xff) == 0x80 : vo == 0x8000) && org_c);
|
||||
setPSW_v((word_mode ? (vo & 0xff) == 0x7f : vo == 0x7fff) && org_c);
|
||||
setPSW_c((word_mode ? (vo & 0xff) == 0xff : vo == 0xffff) && org_c);
|
||||
|
||||
setRegister(dst_reg, false, v);
|
||||
|
|
Loading…
Add table
Reference in a new issue