Files
rgbds/test/asm/load-overflow.asm
Sylvie 0e8a17ce82 Report any section overflows at the end of assembly (#1482)
* Report any section overflows at the end of assembly

* Immediately handle overflow of the 32-bit size counter
2024-08-22 18:51:52 +02:00

26 lines
284 B
NASM

SECTION "Overflow", ROM0
ds $6000
LOAD "oops",WRAM0
ds $2000
db
db
ENDL
SECTION "Moar overflow", ROM0
ds $4000
ds $4000
LOAD "hmm", WRAM0
ds $2000
ds $2000
ENDL
ds $1000
SECTION "Not overflowing", ROM0
ds $800
LOAD "lol", WRAM0
ds $1000
ds $1000
ds $1000
ENDL
ds $800