Allow padding to coexist with overlay file (#1395)

This commit is contained in:
Sylvie
2024-05-17 05:14:44 -04:00
committed by GitHub
parent e2633d5b66
commit 352551d4f8
14 changed files with 55 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
SECTION "start", ROM0[0]
db 1, 2, 3, 4
ds 4
db 5, 6, 7, 8
SECTION "end", ROMX[$4000], BANK[2]
db 9, 10, 11, 12
ds 4
db 13, 14, 15, 16

View File

@@ -0,0 +1 @@
warning: Overlay file does not have a size multiple of 0x4000

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -181,7 +181,17 @@ rgblinkQuiet -o "$gbtemp2" "$outtemp"
tryCmp "$gbtemp" "$gbtemp2"
evaluateTest
test="overlay"
test="overlay/smaller"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -o "$gbtemp" -p 0x42 -O "$test"/overlay.gb "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
# This test does not trim its output with 'dd' because it needs to verify the correct output size
tryCmp "$test"/out.gb "$gbtemp"
evaluateTest
test="overlay/tiny"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest