Merge pull request #12 from folkertvanheusden/MTPID
N flag depends on bit 15
This commit is contained in:
commit
7ea4acd24f
1 changed files with 1 additions and 1 deletions
2
op00.py
2
op00.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue