diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-12-16 15:10:01 -0500 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-12-16 15:10:01 -0500 |
commit | 936ba7f1bf492a805596716660cd751e35fc74cd (patch) | |
tree | 335567b37e532c375b8d8b7cd446c79aee96fb24 /asmdiff.sh | |
parent | 34fc9789c9d11464161aabf022eb270597c6778a (diff) |
Apply all source related changes for the new INSTALL.md in one commit.
For people who want to have dkPless builds in their repo.
Diffstat (limited to 'asmdiff.sh')
-rwxr-xr-x | asmdiff.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/asmdiff.sh b/asmdiff.sh index 6ea588131..f5a701074 100755 --- a/asmdiff.sh +++ b/asmdiff.sh @@ -1,11 +1,19 @@ #!/bin/bash -OBJDUMP="$DEVKITARM/bin/arm-none-eabi-objdump -D -bbinary -marmv4t -Mforce-thumb" +if [[ -d "$DEVKITARM/bin/" ]]; then + OBJDUMP_BIN="$DEVKITARM/bin/arm-none-eabi-objdump" +else + OBJDUMP_BIN="arm-none-eabi-objdump" +fi + +OBJDUMP="$OBJDUMP_BIN -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 |