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,8 +1,8 @@
|
||||
SECTION "test", ROM0[1]
|
||||
call Target
|
||||
PRINTT "PC in ROM: {@}\n"
|
||||
PRINTLN "PC in ROM: {@}"
|
||||
LOAD "new", WRAMX[$D001],BANK[1]
|
||||
PRINTT "PC in WRAM: {@}\n"
|
||||
PRINTLN "PC in WRAM: {@}"
|
||||
assert @ == $D001
|
||||
Target: dl DEAD << 16 | BEEF
|
||||
db BANK(@)
|
||||
@@ -29,4 +29,4 @@ SECTION "small ram test", WRAMX,BANK[1] ; Should end up at $D000
|
||||
Byte:
|
||||
db
|
||||
|
||||
PRINTT "{Target}\n{Target.end}\n{After}\n"
|
||||
PRINTLN "{Target}\n{Target.end}\n{After}"
|
||||
|
||||
Reference in New Issue
Block a user