mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
rgblink option -w has been restored to its previous behaviour: make WRAM a continous section instead of spliting it into WRAM0 and WRAMX. To enable DMG mode, option -d has to be used instead. This option automatically enables -w. Update tests. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
otemp=$(mktemp)
|
|
gbtemp=$(mktemp)
|
|
gbtemp2=$(mktemp)
|
|
outtemp=$(mktemp)
|
|
|
|
RGBASM=../../rgbasm
|
|
RGBLINK=../../rgblink
|
|
|
|
$RGBASM -o $otemp bank-numbers.asm
|
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff bank-numbers.out $outtemp
|
|
head -c 20 $gbtemp > $otemp 2>&1
|
|
diff bank-numbers.out.bin $otemp
|
|
|
|
$RGBASM -o $otemp wramx-dmg-mode.asm
|
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff wramx-dmg-mode-no-d.out $outtemp
|
|
$RGBLINK -d -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff wramx-dmg-mode-d.out $outtemp
|
|
|
|
$RGBASM -o $otemp vram-fixed-dmg-mode.asm
|
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff vram-fixed-dmg-mode-no-d.out $outtemp
|
|
$RGBLINK -d -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff vram-fixed-dmg-mode-d.out $outtemp
|
|
|
|
$RGBASM -o $otemp vram-floating-dmg-mode.asm
|
|
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff vram-floating-dmg-mode-no-d.out $outtemp
|
|
$RGBLINK -d -o $gbtemp $otemp > $outtemp 2>&1
|
|
diff vram-floating-dmg-mode-d.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
|
|
|
|
$RGBASM -o $otemp high-low-a.asm
|
|
$RGBLINK -o $gbtemp $otemp
|
|
$RGBASM -o $otemp high-low-b.asm
|
|
$RGBLINK -o $gbtemp2 $otemp
|
|
diff $gbtemp $gbtemp2
|
|
|
|
exit 0
|