mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 04:52:08 +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:
@@ -1,7 +1,7 @@
|
||||
s EQUS "Hello, "
|
||||
REDEF s EQUS "{s}world!"
|
||||
; prints "Hello, world!"
|
||||
PRINTT "{s}\n"
|
||||
PRINTLN "{s}"
|
||||
|
||||
list: MACRO
|
||||
LIST_NAME EQUS "\1"
|
||||
@@ -15,9 +15,9 @@ PURGE LIST_NAME
|
||||
ENDM
|
||||
|
||||
list FOO
|
||||
PRINTT "{FOO}\n"
|
||||
PRINTLN "{FOO}"
|
||||
list FOO, 1, A, 2, B
|
||||
PRINTT "{FOO}\n"
|
||||
PRINTLN "{FOO}"
|
||||
|
||||
N EQU 42
|
||||
REDEF N EQUS "X"
|
||||
|
||||
Reference in New Issue
Block a user