diff options
author | camthesaxman <cameronghall@cox.net> | 2017-10-01 15:05:00 -0500 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2017-10-01 15:05:00 -0500 |
commit | 0fe97e838eab14723a4a38a773e2bc4d1494241e (patch) | |
tree | acd46b617c5cc75444c05f4e7d4e6b4ad7a5affa /asmdiff.sh | |
parent | d9603769f31000bb13ec6c9bd1bd42942651d111 (diff) |
add asmdiff.sh comparison script
Diffstat (limited to 'asmdiff.sh')
-rw-r--r-- | asmdiff.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asmdiff.sh b/asmdiff.sh new file mode 100644 index 000000000..1d2141c32 --- /dev/null +++ b/asmdiff.sh @@ -0,0 +1,7 @@ +#!/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 pokeemerald.gba > pokeemerald.dump +diff baserom.dump pokeemerald.dump |