mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +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:
5
test/asm/load-begin.asm
Normal file
5
test/asm/load-begin.asm
Normal file
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
db 1
|
||||
0
test/asm/load-begin.err
Normal file
0
test/asm/load-begin.err
Normal file
0
test/asm/load-begin.out
Normal file
0
test/asm/load-begin.out
Normal file
1
test/asm/load-begin.out.bin
Normal file
1
test/asm/load-begin.out.bin
Normal file
@@ -0,0 +1 @@
|
||||
>
|
||||
5
test/asm/load-overflow.asm
Normal file
5
test/asm/load-overflow.asm
Normal file
@@ -0,0 +1,5 @@
|
||||
SECTION "Overflow", ROM0
|
||||
ds $6000
|
||||
LOAD "oops",WRAM0
|
||||
ds $2001
|
||||
ENDL
|
||||
2
test/asm/load-overflow.err
Normal file
2
test/asm/load-overflow.err
Normal file
@@ -0,0 +1,2 @@
|
||||
ERROR: load-overflow.asm(4):
|
||||
Section 'Overflow' grew too big (max size = 0x8000 bytes, reached 0x8001).
|
||||
0
test/asm/load-overflow.out
Normal file
0
test/asm/load-overflow.out
Normal file
5
test/asm/load-trail.asm
Normal file
5
test/asm/load-trail.asm
Normal file
@@ -0,0 +1,5 @@
|
||||
SECTION "test", ROM0
|
||||
db 1
|
||||
LOAD "RAM", WRAM0
|
||||
ld a, 5
|
||||
ENDL
|
||||
0
test/asm/load-trail.err
Normal file
0
test/asm/load-trail.err
Normal file
0
test/asm/load-trail.out
Normal file
0
test/asm/load-trail.out
Normal file
1
test/asm/load-trail.out.bin
Normal file
1
test/asm/load-trail.out.bin
Normal file
@@ -0,0 +1 @@
|
||||
>
|
||||
Reference in New Issue
Block a user