summaryrefslogtreecommitdiff
path: root/asmdiff_de_debug.sh
diff options
context:
space:
mode:
authorCameron Hall <cameronghall@cox.net>2018-01-17 12:07:40 -0600
committerCameron Hall <cameronghall@cox.net>2018-01-17 12:07:40 -0600
commitbcf3fb87450883c9c26afec55f5f0ddc04864e84 (patch)
tree4cb2c6a3435081f5c894cdc28d4272c6d7f18cde /asmdiff_de_debug.sh
parente11494a4c10765c5cd8b7fd18bafae48c1141c92 (diff)
add more debug data
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