Files
rgbds/test/asm/load-pushs.asm
ISSOtm 69d7f84502 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.
2021-05-21 09:37:17 +02:00

16 lines
204 B
NASM

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