Disallow "." as a local label

Fixes #760
This commit is contained in:
Rangi
2021-02-23 19:31:58 -05:00
committed by Eldred Habert
parent d4028fff10
commit 3c5e1caa7c
10 changed files with 19 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
section "period", rom0
global1: db 1
.local db 2
. db 3
+3
View File
@@ -0,0 +1,3 @@
ERROR: period.asm(5):
syntax error, unexpected .
error: Assembly aborted (1 errors)!
+3
View File
@@ -0,0 +1,3 @@
ERROR: period.asm(5):
syntax error
error: Assembly aborted (1 errors)!
-3
View File
@@ -1,3 +0,0 @@
SECTION "sec", ROM0
foo:
add sp, .
+3
View File
@@ -0,0 +1,3 @@
SECTION "sec", ROM0
foo:
add sp, .bar ; rgblink gives an "Unknown symbol" error here
View File