mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Allow syntax cpl a
This commit is contained in:
21
test/asm/destination-a.asm
Normal file
21
test/asm/destination-a.asm
Normal file
@@ -0,0 +1,21 @@
|
||||
SECTION "destination optional", ROM0[0]
|
||||
|
||||
MACRO both
|
||||
REDEF op EQUS "\1"
|
||||
SHIFT
|
||||
{op} \#
|
||||
if _NARG
|
||||
{op} a, \#
|
||||
else
|
||||
{op} a
|
||||
endc
|
||||
ENDM
|
||||
|
||||
both cpl
|
||||
both add, b
|
||||
both adc, 42
|
||||
both sub, 69
|
||||
both sbc, c
|
||||
both and, d
|
||||
both or, %1010
|
||||
both xor, $80
|
||||
3
test/asm/destination-a.out.bin
Normal file
3
test/asm/destination-a.out.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
//<2F><><EFBFBD>*<2A>*<2A>E<EFBFBD>E<EFBFBD><45><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Reference in New Issue
Block a user