summaryrefslogtreecommitdiff
path: root/asmdiff_de_debug.sh
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-02-07 00:55:50 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2018-02-07 00:55:50 -0500
commitc28d691ff2821adcf43600a308d523fd609e12e2 (patch)
tree5cfe618a442bb4a67b4aaef0c7f2c27d4bd3eedb /asmdiff_de_debug.sh
parent19b0a0f3e05c73b84e5afaffb83080474774e918 (diff)
parent6eaadfc62e89a25c2de674aebf69f077c491580f (diff)
Merge branch 'master' into fix_nonmatching
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