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:
ISSOtm
2021-05-21 09:06:48 +02:00
parent e970b6d6eb
commit 69d7f84502
9 changed files with 52 additions and 9 deletions

15
test/asm/load-pushs.asm Normal file
View 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