Scramble banks from the end of the ROM (#1273)

This is more likely to test edge cases, such as having content in banks with their highest bit set.
This commit is contained in:
Rangi
2023-12-17 20:14:03 -05:00
committed by GitHub
parent 5a3a215b0e
commit 39018174c5
5 changed files with 61 additions and 23 deletions

View File

@@ -122,7 +122,7 @@ for i in *.asm; do
desired_binname=${i%.asm}.out.bin
if [ -f "$desired_binname" ]; then
"$RGBLINK" -o "$gb" "$o"
rom_size=$(wc -c < "$desired_binname")
rom_size=$(printf %s $(wc -c <"$desired_binname"))
dd if="$gb" count=1 bs="$rom_size" >"$output" 2>/dev/null
tryCmp "$desired_binname" "$output" gb
(( our_rc = our_rc || $? ))