Support ! operator for condition codes (#720)

Fixes #719
This commit is contained in:
Rangi
2021-11-01 19:16:52 -04:00
committed by GitHub
parent b16d2d0695
commit 47442941b6
6 changed files with 34 additions and 4 deletions

21
test/asm/ccode.asm Normal file
View File

@@ -0,0 +1,21 @@
SECTION "ccode test", ROM0[0]
Label:
.local1
jp z, Label
jr nz, .local1
call c, Label
call nc, Label
.local2
jp !nz, Label
jr !z, .local2
call !nc, Label
call !c, Label
.local3
jp !!z, Label
jr !!nz, .local3
call !!c, Label
call !!nc, Label

0
test/asm/ccode.err Normal file
View File

0
test/asm/ccode.out Normal file
View File

BIN
test/asm/ccode.out.bin Normal file

Binary file not shown.