katam/asmdiff.sh
2020-05-05 12:00:52 +03:00

11 lines
348 B
Bash
Executable File

#!/bin/bash
buildname=katam
baserom=baserom
OBJDUMP="$DEVKITARM/bin/arm-none-eabi-objdump -D -bbinary -marmv4t -Mforce-thumb"
OPTIONS="--start-address=$(($1)) --stop-address=$(($1 + $2))"
$OBJDUMP $OPTIONS ${baserom}.gba > ${baserom}.dump || exit 1
$OBJDUMP $OPTIONS ${buildname}.gba > ${buildname}.dump
diff -u ${baserom}.dump ${buildname}.dump