fireemblem8u/asmdiff.sh

8 lines
290 B
Bash
Raw Normal View History

2018-02-20 04:55:34 +00:00
#!/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 baserom.dump fireemblem8.dump