Files
rgbds/test/asm/string-formatting.asm
Rangi cee3d1c859 Add more test coverage for RGBASM (#1256)
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
2023-11-29 15:16:05 -05:00

17 lines
325 B
NASM

def n equ 300
def m equ -42
def f equ -123.0456
def pi equ 3.14159
def s equs "hello"
println "<{ -6d:n}> <{+06u:n}> <{5x:n}> <{#16b:n}>"
println "<{u:m}> <{+3d:m}> <{#016o:m}>"
println "<{f:pi}> <{06.f:f}> <{.10f:f}>"
println "<{#-10s:s}> <{10s:s}>"
macro foo
println "\1 <{\1}>"
endm
foo -6d:n ; space is trimmed