mirror of
https://github.com/jiangzhengwenjz/katam.git
synced 2024-11-27 07:00:41 +00:00
11 lines
348 B
Bash
11 lines
348 B
Bash
#!/bin/bash
|
|
|
|
buildname=katam
|
|
baserom=baserom
|
|
|
|
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 || exit 1
|
|
$OBJDUMP $OPTIONS ${buildname}.gba > ${buildname}.dump
|
|
diff -u ${baserom}.dump ${buildname}.dump
|