fireemblem8u/asmdiff.sh
2020-03-07 18:21:27 +08:00

8 lines
293 B
Bash
Executable File

#!/bin/bash
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
$OBJDUMP $OPTIONS fireemblem8.gba > fireemblem8.dump
diff -y baserom.dump fireemblem8.dump