MFPI same bug as MTPI

This commit is contained in:
Neil Webber 2024-04-01 10:16:37 -05:00
parent 7ea4acd24f
commit d65986c619

View file

@ -263,7 +263,7 @@ def op00_65_mfpi(cpu, inst, opsize=2):
pival = cpu.stackpointers[prvm] pival = cpu.stackpointers[prvm]
else: else:
pival = cpu.operandx(inst & 0o77, altmode=prvm, altspace=space) pival = cpu.operandx(inst & 0o77, altmode=prvm, altspace=space)
cpu.psw_n = pival & cpu.MASK16 cpu.psw_n = pival & cpu.SIGN16
cpu.psw_z = (pival == 0) cpu.psw_z = (pival == 0)
cpu.psw_v = 0 cpu.psw_v = 0
cpu.stackpush(pival) cpu.stackpush(pival)