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:
@@ -1,18 +1,16 @@
|
||||
print: MACRO
|
||||
PRINTT "\1"
|
||||
PRINTT "\n"
|
||||
print1: MACRO
|
||||
PRINTLN "\1"
|
||||
ENDM
|
||||
|
||||
print John "Danger" Smith
|
||||
print \\A\nB
|
||||
print C\
|
||||
print1 John "Danger" Smith
|
||||
print1 \\A\nB
|
||||
print1 C\
|
||||
D
|
||||
print E\!F ; illegal character escape
|
||||
print1 E\!F ; illegal character escape
|
||||
|
||||
|
||||
iprint: MACRO
|
||||
PRINTT "{\1}"
|
||||
PRINTT "\n"
|
||||
PRINTLN "{\1}"
|
||||
ENDM
|
||||
|
||||
s EQUS "hello"
|
||||
|
||||
Reference in New Issue
Block a user