mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 19:09:36 +00:00
Fix bugs with LOAD section size
LOAD blocks did not properly update their parent's size until after closed Additionally, section size wasn't correctly sanitized inside LOAD blocks
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
db 1
|
||||
@@ -0,0 +1 @@
|
||||
>
|
||||
@@ -0,0 +1,5 @@
|
||||
SECTION "Overflow", ROM0
|
||||
ds $6000
|
||||
LOAD "oops",WRAM0
|
||||
ds $2001
|
||||
ENDL
|
||||
@@ -0,0 +1,2 @@
|
||||
ERROR: load-overflow.asm(4):
|
||||
Section 'Overflow' grew too big (max size = 0x8000 bytes, reached 0x8001).
|
||||
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
db 1
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
@@ -0,0 +1 @@
|
||||
>
|
||||
Reference in New Issue
Block a user