v-flag may've been wrong due to missing parameter
This commit is contained in:
Folkert van Heusden 2024-04-04 22:40:16 +02:00 committed by GitHub
parent bddbd824d9
commit 9125cfbeac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,7 +96,7 @@ def op00_52_inc(cpu, inst, opsize=2):
cpu.psw_n = newval & cpu.SIGN816[opsize] cpu.psw_n = newval & cpu.SIGN816[opsize]
cpu.psw_z = (newval == 0) cpu.psw_z = (newval == 0)
cpu.psw_v = (newval == cpu.SIGN816) cpu.psw_v = (newval == cpu.SIGN816[opsize])
# C bit not affected # C bit not affected
cpu.operandx(xb6, newval, opsize=opsize) cpu.operandx(xb6, newval, opsize=opsize)