mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Allow 'dw' and 'dl' to apply to characters of strings
Fixes #568 The old behavior of `dw "string"` can be replicated with `dw ("string")`; likewise for dl
This commit is contained in:
1 parent
e54e02dc77
commit
165bd8cb71
7 files changed
+62
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
SECTION "Test", ROM0
|
||||
|
||||
db "ABC"
|
||||
dw "ABC"
|
||||
dl "ABC"
|
||||
|
||||
db 0, "DEF", -1
|
||||
dw 0, "DEF", -1
|
||||
dl 0, "DEF", -1
|
||||
|
||||
db "A" + 1
|
||||
dw "A" + 1
|
||||
dl "A" + 1
|
||||
|
||||
db 1, ("UVWXYZ") & $ff, -1
|
||||
dw 1, ("UVWXYZ") & $ffff, -1
|
||||
dl 1, ("UVWXYZ"), -1
|
||||
Whitespace-only changes.
Whitespace-only changes.
Binary file not shown.
Reference in new issue
Block a user