shithub: rgbds

ref: 8553b61a946527d12f2af7b75b1a7c66b8044ca1
dir: /test/asm/string-formatting.asm/

View raw version
n equ 300
m equ -42
f equ -123.0456
pi equ 3.14159
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}>"
endm

	foo  -6d:n ; space is trimmed