mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 22:37:50 +00:00
Allow padding to coexist with overlay file (#1395)
This commit is contained in:
9
test/link/overlay/smaller/a.asm
Normal file
9
test/link/overlay/smaller/a.asm
Normal 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
|
||||
1
test/link/overlay/smaller/out.err
Normal file
1
test/link/overlay/smaller/out.err
Normal file
@@ -0,0 +1 @@
|
||||
warning: Overlay file does not have a size multiple of 0x4000
|
||||
BIN
test/link/overlay/smaller/out.gb
Normal file
BIN
test/link/overlay/smaller/out.gb
Normal file
Binary file not shown.
1
test/link/overlay/smaller/overlay.gb
Normal file
1
test/link/overlay/smaller/overlay.gb
Normal file
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user