Skip to content

Instantly share code, notes, and snippets.

@camthesaxman
Created April 21, 2017 01:40
Show Gist options
  • Save camthesaxman/68cec41b1e8ca13dfbed3eb2eec39bc9 to your computer and use it in GitHub Desktop.
Save camthesaxman/68cec41b1e8ca13dfbed3eb2eec39bc9 to your computer and use it in GitHub Desktop.
#!/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.gba > baserom.dump
$OBJDUMP $OPTIONS pokeruby.gba > pokeruby.dump
diff baserom.dump pokeruby.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment