diff options
author | pfero <ohpee@loves.dicksinhisan.us> | 2018-06-03 16:08:32 +0200 |
---|---|---|
committer | pfero <ohpee@loves.dicksinhisan.us> | 2018-06-03 16:08:32 +0200 |
commit | f482d7fe1b68dc624f8f1944399ce1f3096a855f (patch) | |
tree | c5c425a23741ec094481e27dcf1e31c3d883e27e /tools | |
parent | ec704bfa38280c885a7fdf12795efa7c4b1b81c3 (diff) |
Tell the user to get baserom.gb if it doesn't exist.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sort_symfile.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/sort_symfile.sh b/tools/sort_symfile.sh new file mode 100755 index 0000000..d53150f --- /dev/null +++ b/tools/sort_symfile.sh @@ -0,0 +1,10 @@ +#!/bin/sh +sed $1 \ + -e "s/^..:[0-3]/0_ROM0@&/g" \ + -e "s/^..:[4-7]/1_ROMX@&/g" \ + -e "s/^..:[8-9]/2_VRAM@&/g" \ + -e "s/^..:[A-B]/3_SRAM@&/g" \ + -e "s/^00:[C-D]/4_WRAM0@&/g" \ + -e "s/^..:[D-D]/5_WRAMX@&/g" \ +| sort -o $1 +sed -i $1 -e "s/^\w*@//g" |