Bug fix: cmp didn't take Z flag

This commit is contained in:
Takashi Toyoshima 2014-12-07 14:47:46 +09:00
parent 51faf4afb1
commit 8ff302aaf0
1 changed files with 1 additions and 1 deletions

2
6502.S
View File

@ -429,9 +429,9 @@
.endm
.macro _cp reg
__cl (FLAG_N | FLAG_Z | FLAG_C)
mov r1, \reg
subs r0, r1, r0
__cl (FLAG_N | FLAG_Z | FLAG_C)
beq 1f
bcc 3f
__se FLAG_C