mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Reinstate PUSHS clearing the SECTION scope (#870)
* Reinstate PUSHS clearing the SECTION scope Otherwise you can use `PUSHS` to simulate the old `ds -21`, and possibly cause bugs * Have PUSHS push LOAD block state as well It does not make sense not to, and coud cause bugs.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
FATAL: align-pc-outside-section.asm(1):
|
||||
Code generation before SECTION directive
|
||||
Cannot output data outside of a SECTION
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ERROR: pops-restore-no-section.asm(9):
|
||||
Label "DisallowedContent" created outside of a SECTION
|
||||
FATAL: pops-restore-no-section.asm(10):
|
||||
Code generation before SECTION directive
|
||||
Cannot output data outside of a SECTION
|
||||
|
||||
5
test/asm/pushs.asm
Normal file
5
test/asm/pushs.asm
Normal file
@@ -0,0 +1,5 @@
|
||||
SECTION "This is invalid", ROM0
|
||||
ds 10, 42
|
||||
PUSHS
|
||||
; We should be outside of section scope now
|
||||
db 69
|
||||
2
test/asm/pushs.err
Normal file
2
test/asm/pushs.err
Normal file
@@ -0,0 +1,2 @@
|
||||
FATAL: pushs.asm(5):
|
||||
Cannot output data outside of a SECTION
|
||||
0
test/asm/pushs.out
Normal file
0
test/asm/pushs.out
Normal file
Reference in New Issue
Block a user