Files
rgbds/test/asm/rept-shift.asm
Rangi e596dbfc80 Make failed macro arg expansions non-fatal
Expanding empty strings is valid but pointless;
macro args already skipped doing so, now other
`beginExpansion` calls do too.

This also fixes failed interpolations (which were
already non-fatal) to continue reading characters,
not evaluate to their initial '{' character.
2021-04-22 09:59:02 +02:00

16 lines
204 B
NASM

m: macro
PRINT "\1 "
REPT 4
SHIFT
ENDR
PRINTLN "\1s!"
; Shifting a little more to check that over-shifting doesn't crash
SHIFT
SHIFT
SHIFT 256
PRINTLN "\1?"
endm
m This, used, not, to, work