mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fixes #570 Fixes #178 Use errors for inapplicable format spec flags instead of -Wstring-format
16 lines
293 B
NASM
16 lines
293 B
NASM
n equ 300
|
|
m equ -42
|
|
f equ -123.0456
|
|
s equs "hello"
|
|
|
|
printt "<{ -6d:n}> <{+06u:n}> <{5x:n}> <{#16b:n}>\n"
|
|
printt "<{u:m}> <{+3d:m}> <{#016o:m}>\n"
|
|
printt "<{f:_PI}> <{06f:f}> <{.10f:f}>\n"
|
|
printt "<{#-10s:s}> <{10s:s}>\n"
|
|
|
|
foo: macro
|
|
printt "<{\1}>\n"
|
|
endm
|
|
|
|
foo -6d:n ; space is trimmed
|