SECTION "Test", ROM0

MACRO list
	db _NARG
if _NARG > 0
	db \#
endc
	db -1
ENDM

	list
	list 42
	list $aa, $bb, $cc, $dd, $ee

MACRO person
	db \1, \2, \3, \4, \5
ENDM

MACRO object
	DEF x = \1
	DEF y = \2
	shift 2
	person y, x, \#
ENDM

	person  5, 10, $33, $44, $55
	object 12,  6, $66, $77, $88

MACRO echo
	println "\#"
ENDM

DEF R EQUS "S"

	echo P
	echo Q,R, {R},  T
	echo 42,$2a

MACRO printall
	println \#
ENDM

	printall
	printall "A"
	printall "B", "C",  "D"
