mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
* Report any section overflows at the end of assembly * Immediately handle overflow of the 32-bit size counter
26 lines
284 B
NASM
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
|