pokeemerald/asmdiff.ps1
2019-02-24 03:33:33 -05:00

5 lines
425 B
PowerShell

$objdump = Join-Path -Path "$($args[0])" -ChildPath "bin\objdump.exe"
&$objdump -D -bbinary -marmv4t -Mforce-thumb --start-address="$($args[1])" --stop-address="$($args[2])" .\baserom.gba > .\baserom.dump
&$objdump -D -bbinary -marmv4t -Mforce-thumb --start-address="$($args[1])" --stop-address="$($args[2])" .\pokeemerald.gba > .\pokeemerald.dump
Compare-Object (Get-Content .\baserom.dump) (Get-Content .\pokeemerald.dump)