mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
remove more code cruft
This commit is contained in:
parent
48b2237b82
commit
c79db81d43
@ -534,14 +534,6 @@ temp_opt_table = [
|
|||||||
[ "E", 0x100, -1 ],
|
[ "E", 0x100, -1 ],
|
||||||
]
|
]
|
||||||
|
|
||||||
#find conflicts
|
|
||||||
conflict_table = {}
|
|
||||||
for line in temp_opt_table:
|
|
||||||
if line[1] in conflict_table.keys():
|
|
||||||
print "CONFLICT: " + line[0] + " ($" + hex(line[1])[2:] + ") .... " + conflict_table[line[1]]
|
|
||||||
else:
|
|
||||||
conflict_table[line[1]] = line[0]
|
|
||||||
|
|
||||||
#construct real opt_table
|
#construct real opt_table
|
||||||
opt_table = {}
|
opt_table = {}
|
||||||
for line in temp_opt_table:
|
for line in temp_opt_table:
|
||||||
@ -832,19 +824,6 @@ def all_outstanding_labels_are_reverse(byte_labels, offset):
|
|||||||
if not label_id < offset: return False
|
if not label_id < offset: return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def text_asm_pretty_printer(label, address_of_08, include_08=True):
|
|
||||||
"""returns (output, end_address)"""
|
|
||||||
output = label + ": ; " + hex(address_of_08) + "\n"
|
|
||||||
if include_08:
|
|
||||||
output += spacing + "db $08 ; asm\n"
|
|
||||||
results = output_bank_opcodes(address_of_08 + 1)
|
|
||||||
else:
|
|
||||||
results = output_bank_opcodes(address_of_08)
|
|
||||||
output += results[0]
|
|
||||||
end_address = results[1]
|
|
||||||
|
|
||||||
return (output, end_address)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
load_rom()
|
load_rom()
|
||||||
print output_bank_opcodes(int(sys.argv[1], 16))[0]
|
print output_bank_opcodes(int(sys.argv[1], 16))[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user