diff options
-rwxr-xr-x | generate_rom_data.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/generate_rom_data.sh b/generate_rom_data.sh deleted file mode 100755 index aedb17b..0000000 --- a/generate_rom_data.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# -# Attempt to combine all ROM data symbols into a single assembly file - -# Get ROM symbols with addresses from .map file -awk --non-decimal-data '/^\s*0x\w+\s+\w+/{if ($1 > 0x8055A68) print $1 " " $2}' pokepinballrs.map | -# Sort and remove duplicates -sort -u | -# Process into asm file -awk -f \ -<(cat - <<-'EOF' -BEGIN { - prevAddress = ""; - romAddress = strtonum("0x55A84"); # addr of gWildMonLocations -} -/\w+ \w+/ { - address = strtonum($1); - symbol = $2; - - # Output space before - if (prevAddress != "") { - space = address - prevAddress; - printf("\t.incbin \"baserom.gba\", 0x%X, 0x%X\n\n", romAddress, space); - romAddress += space; - } - - prevAddress = address; - - # Output label - printf("%s:: @ 0x%08X\n", symbol, address); - -} -EOF -)
\ No newline at end of file |