katam/asmdiff.sh
jiangzhengwenjz c51ad93f4f rename repo
2020-02-19 00:30:10 +08:00

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