mirror of
https://github.com/jiangzhengwenjz/katam.git
synced 2024-11-23 13:10:11 +00:00
11 lines
348 B
Bash
Executable File
11 lines
348 B
Bash
Executable File
#!/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
|