Improve testing bracketed symbols

Also test EQU and _RS constants, as well as that EQUS errors out,
and that labels don't work.
This commit is contained in:
ISSOtm
2019-08-29 19:16:28 +02:00
parent a21ea30be0
commit 995265c549
3 changed files with 28 additions and 0 deletions

View File

@@ -4,3 +4,17 @@ PRINTT "{x:X}\n"
PRINTT "{X:X}\n"
PRINTT "{d:X}\n"
PRINTT "{b:X}\n"
Y equ 1337
PRINTT "{b:Y}\n"
rsreset
R rb 0
PRINTT "{d:R}\n"
S equs "You can't format me!"
PRINTT "{X:S}\n"
SECTION "Test", ROM0
Label:
PRINTT "{x:Label}\n"

View File

@@ -1,5 +1,12 @@
ERROR: bracketed-symbols.asm(16):
Print types are only allowed for numbers
ERROR: bracketed-symbols.asm(20):
Expression must have a constant value
$2A
2a
2A
42
101010
10100111001
0
You can't format me!

View File

@@ -1,5 +1,12 @@
ERROR: -(16):
Print types are only allowed for numbers
ERROR: -(20):
Expression must have a constant value
$2A
2a
2A
42
101010
10100111001
0
You can't format me!