pokeruby/asmdiff_de.sh
scnorton 3ef90edf47 Add some potentially useful scripts
de_before.sh: Set up the environment to build German Ruby.  WARNING: Do not commit in this state unless you know what you are doing.
de_after.sh: Revert the German build environment to the English (default) environment.  After executing this script, it will be safe to commit changes.  WARNING: This discards any changes to asm/, data/, and graphics/.
asmdiff_de.sh: Like asmdiff.sh but for the German build environment.  Requires baserom_de.gba with SHA1 sum = 1c2a53332382e14dab8815e3a6dd81ad89534050.
build_tools_mac.sh: Like build_tools.sh but for OS X environments experiencing problems with Homebrew's g++.
clean_tools.sh: Use this to clean the tools directories if you want to cross-compile or recompile.  Does not touch agbcc.
2017-12-18 11:27:43 -05:00

8 lines
299 B
Bash
Executable File

#!/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.gba > baserom_de.dump
$OBJDUMP $OPTIONS pokeruby_de.gba > pokeruby_de.dump
diff baserom_de.dump pokeruby_de.dump