mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement PRINT and PRINTLN (#672)
Fixes #669 Closes #368 Closes #624 Deprecate PRINTT, PRINTV, PRINTI, and PRINTF Default STRFMT("%f") to 5 fractional digits like "{f:}" Any use of string formatting will share this default
This commit is contained in:
@@ -27,7 +27,7 @@ ENDM
|
||||
object 12, 6, $66, $77, $88
|
||||
|
||||
echo: MACRO
|
||||
printt "\#\n"
|
||||
println "\#"
|
||||
ENDM
|
||||
|
||||
R EQUS "S"
|
||||
@@ -36,11 +36,10 @@ R EQUS "S"
|
||||
echo Q,R, {R}, T
|
||||
echo 42,$2a
|
||||
|
||||
print: MACRO
|
||||
printt STRCAT(\#)
|
||||
printt "\n"
|
||||
printall: MACRO
|
||||
println \#
|
||||
ENDM
|
||||
|
||||
print
|
||||
print "A"
|
||||
print "B", "C", "D"
|
||||
printall
|
||||
printall "A"
|
||||
printall "B", "C", "D"
|
||||
|
||||
Reference in New Issue
Block a user