mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add tests for rgblink options -t and -w
Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
1
test/link/romx-tiny-no-t.out
Normal file
1
test/link/romx-tiny-no-t.out
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rgblink:error:Unable to place 'r0b' (ROM0 section) anywhere
|
||||||
1
test/link/romx-tiny-t.out
Normal file
1
test/link/romx-tiny-t.out
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rgblink:error:ROMX sections can't be used with option -t.
|
||||||
8
test/link/romx-tiny.asm
Normal file
8
test/link/romx-tiny.asm
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
SECTION "r0a", ROM0
|
||||||
|
DS $4000
|
||||||
|
|
||||||
|
SECTION "rx", ROMX
|
||||||
|
DS $4000
|
||||||
|
|
||||||
|
SECTION "r0b", ROM0
|
||||||
|
DS $4000
|
||||||
@@ -10,3 +10,17 @@ $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
|||||||
diff bank-numbers.out $outtemp
|
diff bank-numbers.out $outtemp
|
||||||
head -c 20 $gbtemp > $otemp 2>&1
|
head -c 20 $gbtemp > $otemp 2>&1
|
||||||
diff bank-numbers.out.bin $otemp
|
diff bank-numbers.out.bin $otemp
|
||||||
|
|
||||||
|
$RGBASM -o $otemp wramx-contwram.asm
|
||||||
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
||||||
|
diff wramx-contwram-no-w.out $outtemp
|
||||||
|
$RGBLINK -w -o $gbtemp $otemp > $outtemp 2>&1
|
||||||
|
diff wramx-contwram-w.out $outtemp
|
||||||
|
|
||||||
|
$RGBASM -o $otemp romx-tiny.asm
|
||||||
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
||||||
|
diff romx-tiny-no-t.out $outtemp
|
||||||
|
$RGBLINK -t -o $gbtemp $otemp > $outtemp 2>&1
|
||||||
|
diff romx-tiny-t.out $outtemp
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
@@ -7,3 +7,13 @@ RGBLINK=../../rgblink
|
|||||||
$RGBASM -o $otemp bank-numbers.asm
|
$RGBASM -o $otemp bank-numbers.asm
|
||||||
$RGBLINK -o $gbtemp $otemp > bank-numbers.out 2>&1
|
$RGBLINK -o $gbtemp $otemp > bank-numbers.out 2>&1
|
||||||
head -c 20 $gbtemp > bank-numbers.out.bin 2>&1
|
head -c 20 $gbtemp > bank-numbers.out.bin 2>&1
|
||||||
|
|
||||||
|
$RGBASM -o $otemp wramx-contwram.asm
|
||||||
|
$RGBLINK -o $gbtemp $otemp > wramx-contwram-no-w.out 2>&1
|
||||||
|
$RGBLINK -w -o $gbtemp $otemp > wramx-contwram-w.out 2>&1
|
||||||
|
|
||||||
|
$RGBASM -o $otemp romx-tiny.asm
|
||||||
|
$RGBLINK -o $gbtemp $otemp > romx-tiny-no-t.out 2>&1
|
||||||
|
$RGBLINK -t -o $gbtemp $otemp > romx-tiny-t.out 2>&1
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
1
test/link/wramx-contwram-no-w.out
Normal file
1
test/link/wramx-contwram-no-w.out
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rgblink:error:Unable to place 'w0b' (WRAM0 section) anywhere
|
||||||
1
test/link/wramx-contwram-w.out
Normal file
1
test/link/wramx-contwram-w.out
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rgblink:error:WRAMX sections can't be used with option -w.
|
||||||
8
test/link/wramx-contwram.asm
Normal file
8
test/link/wramx-contwram.asm
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
SECTION "w0a", WRAM0
|
||||||
|
DS $1000
|
||||||
|
|
||||||
|
SECTION "wx", WRAMX
|
||||||
|
DS $1000
|
||||||
|
|
||||||
|
SECTION "w0b", WRAM0
|
||||||
|
DS $1000
|
||||||
Reference in New Issue
Block a user