mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-30 14:20:42 +01:00
12 lines
434 B
Bash
Executable File
12 lines
434 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OBJDUMP="$DEVKITARM/bin/arm-none-eabi-objdump -D -bbinary -marmv4t -Mforce-thumb"
|
|
if [ $(($1)) -ge $((0x8000000)) ]; then
|
|
OPTIONS="--adjust-vma=0x8000000 --start-address=$(($1)) --stop-address=$(($1 + $2))"
|
|
else
|
|
OPTIONS="--start-address=$(($1)) --stop-address=$(($1 + $2))"
|
|
fi
|
|
$OBJDUMP $OPTIONS baserom.gba > baserom.dump
|
|
$OBJDUMP $OPTIONS pokeemerald.gba > pokeemerald.dump
|
|
diff -u baserom.dump pokeemerald.dump
|