diff options
author | yenatch <yenatch@gmail.com> | 2013-06-25 04:04:19 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-06-25 04:04:19 -0400 |
commit | 2d1212ecf12b5d46796f13215ac87e0007fd2db4 (patch) | |
tree | 3642c3c8dbd5b647783ec74661f3c64ed1edc56f /gbz80disasm.py | |
parent | 99b42da1500fbb38700a41548e760f9cd17fc2e9 (diff) |
gbz80disasm: just use lowercase labels
original-commit-id: 2896cb93d48f6b4fb759c37753db7095d4e69ffd
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r-- | gbz80disasm.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py index 29c274a..ed546ef 100644 --- a/gbz80disasm.py +++ b/gbz80disasm.py @@ -589,9 +589,9 @@ def find_label(local_address, bank_id=0): def asm_label(address): # why using a random value when you can use the address? - return '.ASM_%x' % address + return '.asm_%x' % address def data_label(address): - return '.DATA_%x' % address + return '.data_%x' % address def get_local_address(address): bank = address / 0x4000 @@ -658,7 +658,7 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add byte_labels[offset]["name"] = line_label byte_labels[offset]["usage"] = 0 byte_labels[offset]["definition"] = True - output += line_label.lower() + "\n" #" ; " + hex(offset) + "\n" + output += line_label + "\n" #" ; " + hex(offset) + "\n" #find out if there's a two byte key like this temp_maybe = maybe_byte @@ -732,7 +732,7 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add byte_labels[target_address]["usage"] = 1 byte_labels[target_address]["definition"] = False - insertion = line_label2.lower() + insertion = line_label2 if has_outstanding_labels(byte_labels) and all_outstanding_labels_are_reverse(byte_labels, offset): include_comment = True elif current_byte == 0x3e: @@ -855,8 +855,8 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add keep_reading = True if offset in data_tables.keys(): - output = output.replace('$%x' % (get_local_address(offset)), data_label(offset).lower()) - output += data_label(offset).lower() + '\n' + output = output.replace('$%x' % (get_local_address(offset)), data_label(offset)) + output += data_label(offset) + '\n' is_data = True keep_reading = True @@ -867,7 +867,7 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000, include_last_add address = label_line label_line = byte_labels[label_line] if label_line["usage"] == 0: - output = output.replace((label_line["name"] + "\n").lower(), "") + output = output.replace((label_line["name"] + "\n"), "") #tone down excessive spacing output = output.replace("\n\n\n","\n\n") |