mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove deprecated RGBASM features (#1215)
- Escaped commas "\," inside strings - `name: MACRO` syntax - `__FILE__` and `__LINE__` - `-H/--nop-after-halt` and `-l/--auto-ldh` on by default
This commit is contained in:
1
test/asm/.gitignore
vendored
1
test/asm/.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
/quote\"file.*
|
||||
/version.asm
|
||||
/version.out
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
PRINTLN "{__FILE__}"
|
||||
@@ -1,2 +0,0 @@
|
||||
warning: file-sym.asm(1): [-Wobsolete]
|
||||
`__FILE__` is deprecated
|
||||
@@ -1 +0,0 @@
|
||||
"file-sym.asm"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
SECTION "Label testing", WRAMX
|
||||
|
||||
Lab:
|
||||
@@ -7,7 +6,7 @@ SECTION "Label testing", WRAMX
|
||||
|
||||
: ; anonymous
|
||||
|
||||
mac: MACRO
|
||||
MACRO mac
|
||||
println "\1"
|
||||
ENDM
|
||||
mac :
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
warning: label-indent.asm(10): [-Wobsolete]
|
||||
`mac: MACRO` is deprecated; use `MACRO mac`
|
||||
|
||||
@@ -1 +1 @@
|
||||
:
|
||||
:
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
MACRO new ; comment
|
||||
println "in with the ", \1
|
||||
ENDM ; comment
|
||||
|
||||
new 2
|
||||
|
||||
old: MACRO ; comment
|
||||
println "out with the ", \1
|
||||
ENDM ; comment
|
||||
|
||||
MACRO new ; comment
|
||||
println "in with the ", \1
|
||||
ENDM ; comment
|
||||
|
||||
old 1
|
||||
new 2
|
||||
|
||||
bad1: MACRO bad2 ; comment
|
||||
println "which?"
|
||||
ENDM ; comment
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
warning: macro-syntax.asm(2): [-Wobsolete]
|
||||
`old: MACRO` is deprecated; use `MACRO old`
|
||||
error: macro-syntax.asm(13):
|
||||
syntax error, unexpected identifier, expecting newline
|
||||
error: macro-syntax.asm(15):
|
||||
error: macro-syntax.asm(7):
|
||||
syntax error, unexpected MACRO
|
||||
error: macro-syntax.asm(8):
|
||||
Macro argument '\1' not defined
|
||||
error: macro-syntax.asm(9):
|
||||
syntax error, unexpected ENDM
|
||||
error: Assembly aborted (2 errors)!
|
||||
error: Assembly aborted (3 errors)!
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
out with the $1
|
||||
in with the $2
|
||||
which?
|
||||
out with the
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
error: macro-syntax.asm(13):
|
||||
error: macro-syntax.asm(7):
|
||||
syntax error
|
||||
error: macro-syntax.asm(15):
|
||||
error: macro-syntax.asm(8):
|
||||
Macro argument '\1' not defined
|
||||
error: macro-syntax.asm(9):
|
||||
syntax error
|
||||
error: Assembly aborted (2 errors)!
|
||||
error: Assembly aborted (3 errors)!
|
||||
|
||||
Reference in New Issue
Block a user