mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 20:12:07 +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:
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
|
||||
Reference in New Issue
Block a user