mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
@@ -1,5 +1,25 @@
|
||||
SECTION "Overflow", ROM0
|
||||
ds $6000
|
||||
LOAD "oops",WRAM0
|
||||
; We might get an error for "oops", but it can also make sense to no-op the directive
|
||||
ds $2001
|
||||
; We shouldn't get any more errors for "Overflow" nor "oops"
|
||||
db
|
||||
ENDL
|
||||
|
||||
SECTION "Moar overflow", ROM0
|
||||
ds $6001
|
||||
LOAD "hmm", WRAM0
|
||||
ds $2000
|
||||
; Since the `ds` overflows "Moar overflow", it could be no-op'd, making this `db` not error
|
||||
db
|
||||
ENDL
|
||||
|
||||
SECTION "Not overflowing", ROM0
|
||||
ds $5FFF
|
||||
LOAD "lol", WRAM0
|
||||
ds $2000
|
||||
db
|
||||
; Since the LOAD block is overflowed, this may be no-op'd, not affecting the "parent"
|
||||
ENDL
|
||||
dw ; This, however...
|
||||
|
||||
@@ -1,2 +1,11 @@
|
||||
FATAL: load-overflow.asm(4):
|
||||
ERROR: load-overflow.asm(5):
|
||||
Section 'Overflow' grew too big (max size = 0x8000 bytes, reached 0x8001).
|
||||
ERROR: load-overflow.asm(5):
|
||||
Section 'oops' grew too big (max size = 0x2000 bytes, reached 0x2001).
|
||||
ERROR: load-overflow.asm(13):
|
||||
Section 'Moar overflow' grew too big (max size = 0x8000 bytes, reached 0x8001).
|
||||
ERROR: load-overflow.asm(22):
|
||||
Section 'lol' grew too big (max size = 0x2000 bytes, reached 0x2001).
|
||||
ERROR: load-overflow.asm(25):
|
||||
Section 'Not overflowing' grew too big (max size = 0x8000 bytes, reached 0x8001).
|
||||
error: Assembly aborted (5 errors)!
|
||||
|
||||
Reference in New Issue
Block a user