Files
rgbds/test/asm/destination-a.asm
2024-09-06 21:35:17 +02:00

22 lines
246 B
NASM

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