minor touch-ups and missed TX_FARs

hg-commit-id: 584a09bfde83
This commit is contained in:
Bryan Bishop 2012-01-19 13:09:25 -06:00
parent dac8f912af
commit bed1f9de97
2 changed files with 46 additions and 18 deletions

View file

@ -488,6 +488,16 @@ def text_pretty_printer_at(start_address, label="SomeLabel"):
output += "\n" + spacing + "db $11"
byte_count += 1
had_db_last = True
elif command["type"] == 0x6: #wait for keypress
if first_line:
output = "\n" + label + ": ; " + hex(start_address)
first_line = False
if had_db_last:
output += ", $6"
else:
output += "\n" + spacing + "db $6"
byte_count += 1
had_db_last = True
else:
print "ERROR in command: " + hex(command["type"])
had_db_last = False