Merge pull request #12 from folkertvanheusden/MTPID

N flag depends on bit 15
This commit is contained in:
Neil Webber 2024-04-01 10:12:01 -05:00 committed by GitHub
commit 7ea4acd24f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,7 +285,7 @@ def op00_66_mtpi(cpu, inst, opsize=2):
targetspace = (cpu.mmu.DSPACE, cpu.mmu.ISPACE)[opsize - 1]
w = cpu.stackpop()
cpu.psw_n = w & cpu.MASK16
cpu.psw_n = w & cpu.SIGN16
cpu.psw_z = (w == 0)
cpu.psw_v = 0