Skip to content

Commit

Permalink
Update dump_maps to specify DEF when defining constants
Browse files Browse the repository at this point in the history
  • Loading branch information
VariantXYZ committed Mar 3, 2024
1 parent 0d3be89 commit 0ddb0d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/dump_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ def dump(output_root, prebuilt_root, name, data, character_map = {}):
with open(version_file_path, "w") as version_file:
for var in file_constants[version]:
name = file_constants[version][var]
version_file.write(f'c{map_label.capitalize()}{var} EQUS "\\"{os.path.join(output_path, f"{name}.map")}\\""\n')
version_file.write(f'DEF c{map_label.capitalize()}{var} EQUS "\\"{os.path.join(output_path, f"{name}.map")}\\""\n')

for idx in shifted_table_indices:
version_file.write(f'cBANK_{idx}_GAMEVERSION EQU ${tilemap_tables[versionidx][idx][0]:02X}\n')
version_file.write(f'cADDR_{idx}_GAMEVERSION EQU ${tilemap_tables[versionidx][idx][1]:04X}\n')
version_file.write(f'DEF cBANK_{idx}_GAMEVERSION EQU ${tilemap_tables[versionidx][idx][0]:02X}\n')
version_file.write(f'DEF cADDR_{idx}_GAMEVERSION EQU ${tilemap_tables[versionidx][idx][1]:04X}\n')

version_file.write(f'INCLUDE "{os.path.join(version_src_path, f"{map_label}_table.asm")}"\n')

Expand Down

0 comments on commit 0ddb0d5

Please sign in to comment.