Merge pull request #390 from ISSOtm/print_types

Add "print types" to bracketed symbols
This commit is contained in:
Eldred Habert
2019-08-29 20:12:32 +02:00
committed by GitHub
7 changed files with 114 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
X = 42
PRINTT "{X}\n"
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

@@ -0,0 +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

@@ -0,0 +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!