ref: d23401316e460336400d7c7bc0e302ca924bfa02
parent: b49e025703e43088e7376231474bb546a0ba1093
author: ISSOtm <[email protected]>
date: Sat Dec 7 18:43:55 EST 2019
Improve pc-bank test
--- a/test/asm/pc-bank.asm
+++ b/test/asm/pc-bank.asm
@@ -1,7 +1,11 @@
SECTION "Fixed bank", ROMX,BANK[42]
+ ldh a, [BANK(@) * 256] ; This should be complained about at assembly time
+
X = BANK(@)
-SECTION "Something else", OAM
+SECTION "Something else", ROMX
Y = BANK("Fixed bank")
PRINTT "@: {X}\nStr: {Y}\n"
+
+ERR = BANK(@)
--- /dev/null
+++ b/test/asm/pc-bank.out
@@ -1,0 +1,8 @@
+ERROR: pc-bank.asm(2):
+ Source address $2a00 not in $FF00 to $FFFF
+ERROR: pc-bank.asm(11):
+ @'s bank is not known yet
+ERROR: pc-bank.asm(11):
+ Non-constant expression
+@: $2A
+Str: $2A