diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-03 14:57:10 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-03 14:57:10 -0500 |
commit | 0d1f2d6710a8a22d76b4c645f40a6d8e6411571d (patch) | |
tree | 8383b618c5d6e7ee95e6ba42ba958c4a3ec09626 | |
parent | c07ffc7633fca8ccdb55856d67f5265638dcbe9a (diff) |
Add example .map lines
-rw-r--r-- | tools/sort_map.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/sort_map.py b/tools/sort_map.py index 9f7f0f4b3..ca544d270 100644 --- a/tools/sort_map.py +++ b/tools/sort_map.py @@ -23,10 +23,15 @@ def total_bank_size(type): return sizes[type] def sorted_mapfile(input): + # ex: OAM: unused_rx = re.compile(r'^([A-Z]+):$') + # ex: ROM Bank #1: bank_rx = re.compile(r'^([A-Z]+) Bank #([0-9]+)') + # ex: SECTION: $4000-$747A ($347B bytes) ["bank1"] section_rx = re.compile(r' +SECTION: \$([0-9A-F]+)(?:-\$([0-9A-F]+))? \(\$([0-9A-F]+) bytes\) \["(.+)"\]') + # ex: $4025 = PlaceWaitingText.Waiting label_rx = re.compile(r' +\$([0-9A-F]+) = (.+)') + # ex: SLACK: $0B85 bytes slack_rx = re.compile(r' +SLACK: \$([0-9A-F]+) bytes') bank_type = None |