Allow syntax cpl a

This commit is contained in:
Rangi42
2024-09-06 12:42:45 -04:00
committed by Eldred Habert
parent 610f04beeb
commit 068ad93427
4 changed files with 42 additions and 3 deletions

View 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