mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
This should significantly improve performance: on pokecrystal builds, perf reported as much CPU time spent on `yyparse` as on `sym_UseNewMacroArgs` Measurements show ~6 seconds of improvement on that codebase. This also fixes #321, as a bonus, due to saner management!
18 lines
219 B
NASM
18 lines
219 B
NASM
m: macro
|
|
PRINTT "\1 "
|
|
REPT 4
|
|
SHIFT
|
|
ENDR
|
|
PRINTT "\1s!\n"
|
|
|
|
; Shifting a little more to check that over-shifting doesn't crash
|
|
SHIFT
|
|
SHIFT
|
|
REPT 256
|
|
SHIFT
|
|
ENDR
|
|
PRINTT "\1\n"
|
|
endm
|
|
|
|
m This, used, not, to, work
|