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:
Rangi
2020-12-09 15:04:54 -05:00
committed by Eldred Habert
parent e54e02dc77
commit 165bd8cb71
7 changed files with 62 additions and 2 deletions

View File

@@ -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