summaryrefslogtreecommitdiff
path: root/tools/asmdiff.sh
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-07-12 17:10:52 -0400
committerGitHub <noreply@github.com>2019-07-12 17:10:52 -0400
commitad274b9561d16589d8099a3671617e2255c1e9c5 (patch)
treeeac97aaca6a507e754fa15124c89b14e495060bd /tools/asmdiff.sh
parent39d68ebd445be5657a916dec1b4872717e9c40d3 (diff)
parent185cd074035c41d4550a150139b1eeb34541ace8 (diff)
Merge pull request #79 from gwimm/master
decompile: diploma.s
Diffstat (limited to 'tools/asmdiff.sh')
-rwxr-xr-xtools/asmdiff.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/asmdiff.sh b/tools/asmdiff.sh
new file mode 100755
index 000000000..a8114dc4f
--- /dev/null
+++ b/tools/asmdiff.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+OBJDUMP="./tools/binutils/bin/arm-none-eabi-objdump -D -bbinary -marmv4t -Mforce-thumb"
+OPTIONS="--start-address=$1 --stop-address=$2"
+$OBJDUMP $OPTIONS baserom.gba > baserom.dump
+$OBJDUMP $OPTIONS pokefirered.gba > pokefirered.dump
+diff -u baserom.dump pokefirered.dump