shithub: pokered

Download patch

ref: b36fbc72f34d68d9279d753429715fde72cb6d21
parent: 4c59064f9f65eabbf72c247d78d5607ce1b5409f
author: Bryan Bishop <kanzure@gmail.com>
date: Mon Jan 9 20:40:34 EST 2012

fix extra whitespace from gbz80disasm

hg-commit-id: a244eb0b11fd


--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -586,7 +586,7 @@
             opstr = copy(opt_table[temp_maybe][0])
               
             output += spacing + opstr #+ " ; " + hex(offset)
-            output += spacing + "\n"
+            output += "\n"
 
             current_byte_number += 2
             offset += 2
@@ -653,7 +653,7 @@
                     
                     opstr = opstr[:opstr.find("?")] + insertion + opstr[opstr.find("?")+1:]
                     output += spacing + opstr #+ " ; " + hex(offset)
-                    output += spacing + "\n"
+                    output += "\n"
 
                     current_byte_number += 2
                     offset += 2
@@ -678,7 +678,7 @@
                 
         if is_data and keep_reading:
             output += spacing + "db $" + hex(ord(rom[offset+1]))[2:] #+ " ; " + hex(offset)
-            output += spacing + "\n"
+            output += "\n"
         #else the while loop would have spit out the opcode
 
         #these two are done prior