summaryrefslogtreecommitdiff
path: root/asmdiff_de_debug.sh
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-04-04 18:27:50 -0700
committerMarcus Huderle <huderlem@gmail.com>2018-04-04 18:27:50 -0700
commit3a7f68151e0f0fa71ddb35bd96439c25ffd61576 (patch)
treec8297d41af868eac80642c1f811bc009fa142099 /asmdiff_de_debug.sh
parent2c4d7844e48864d962573eb66fe4b9e68b9631f0 (diff)
parentce75a3895c73f25d6dc7b019ed06e4193965ab35 (diff)
Merge remote-tracking branch 'upstream/master' into battle-1
Diffstat (limited to 'asmdiff_de_debug.sh')
-rwxr-xr-xasmdiff_de_debug.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/asmdiff_de_debug.sh b/asmdiff_de_debug.sh
new file mode 100755
index 000000000..837b88cd2
--- /dev/null
+++ b/asmdiff_de_debug.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_de_debug.gba > baserom_de_debug.dump
+$OBJDUMP $OPTIONS pokeruby_de_debug.gba > pokeruby_de_debug.dump
+diff baserom_de_debug.dump pokeruby_de_debug.dump