mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 20:25:34 +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:
1 parent
e05321356b
commit
9d62b4b9bb
12 files changed
+34
-9
No files matched your search
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
db 1
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -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).
|
||||
Whitespace-only changes.
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
db 1
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
>
|
||||
Reference in new issue
Block a user