shithub: rgbds

ref: 282737450582d791d93022c6ceceee29a97fc190
dir: /test/asm/shift-negative.asm/

View raw version
MACRO reverse
	for i, _NARG
i = _NARG - i - 1
		shift i
		println \1
		shift -i
	endr
ENDM

	reverse $1, $2, $3

MACRO m
	shift 2
	shift -3
	shift 1
	shift 1
	shift -1
	shift -1
ENDM
	m one