summaryrefslogtreecommitdiff
path: root/asmdiff_de_debug.sh
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-02-07 00:40:17 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-02-07 00:40:17 -0500
commit0e448936b5f77561f8bb55f3e0d27e7ed5a64c99 (patch)
tree7c529306c92bcc3e482ef4e0ac89ec941bdc4097 /asmdiff_de_debug.sh
parent51ade392bf16ae4c87a18f8965b8e650fe983d03 (diff)
parenta395cd7e53ed33634eef4df22814da4ba96a3357 (diff)
Merge branch 'master' of https://github.com/pret/pokeruby
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