mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Reset LOAD offset when changing SECTIONs
This would cause spurious section overflow messages, since the load offset is added to the section's when computing its size.
This commit is contained in:
15
test/asm/load-pushs.asm
Normal file
15
test/asm/load-pushs.asm
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
SECTION "Output", ROM0[0]
|
||||
db SIZEOF("ROM CODE")
|
||||
db SIZEOF("RAM CODE")
|
||||
db SIZEOF("HRAM")
|
||||
|
||||
|
||||
SECTION "ROM CODE",ROM0
|
||||
ds $80
|
||||
LOAD "RAM CODE",SRAM
|
||||
PUSHS
|
||||
SECTION "HRAM",HRAM
|
||||
ds 1
|
||||
POPS
|
||||
ENDL
|
||||
Reference in New Issue
Block a user