mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 13:02:07 +00:00
Allow NUL characters in strings (#1405)
This commit is contained in:
12
test/asm/null-character.asm
Normal file
12
test/asm/null-character.asm
Normal file
@@ -0,0 +1,12 @@
|
||||
MACRO echo
|
||||
print "\#"
|
||||
ENDM
|
||||
; '\0' can be printed like any other character
|
||||
print "hello\0world\0"
|
||||
echo left\0right\0
|
||||
|
||||
SECTION "test", ROM0
|
||||
; '\0' can be included in ROM like any other character
|
||||
db "foo\0bar", 0
|
||||
charmap "a\0b", $42
|
||||
db "a\0b\0"
|
||||
Reference in New Issue
Block a user