Skip to content

Commit 381b756

Browse files
committed
Fix comment padding
1 parent 4d9c539 commit 381b756

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

z80-disassembler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,9 @@ def code_output(address, code, display_address, comment="", added_details=""):
702702
case 0:
703703
output=f" {code}"
704704
case 1:
705-
output=f" {code:25} ;{addr}"
705+
output=f" {code:32} ;{addr}"
706706
case 2:
707-
output=f" {code:25} ;{addr} {added_details}"
707+
output=f" {code:32} ;{addr} {added_details}"
708708

709709
if args.style == "asm":
710710
do_write(f"{output} {comment}")
@@ -961,7 +961,7 @@ def print_label(addr):
961961
do_write(";--------------------------------------")
962962
do_write()
963963
# print(f'{lookup_label(loc + code_org)}_{loc + code_org:X}:'+f'{" ":23} ; {" ":8}' , end='XREF=')
964-
tmp_str=f'{labelname:30} ; {" ":8} {xrefstr}'
964+
tmp_str=f'{labelname:40} ; {" ":8} {xrefstr}'
965965
# print(labels)
966966
if args.xref == "on":
967967
for tmp in labels[program_counter]:
@@ -1419,7 +1419,7 @@ def findstring(memstart, memend):
14191419
# do_write()
14201420
# print(f'{lookup_label(loc + code_org)}_{loc + code_org:X}:'+f'{" ":23} ; {" ":8}' , end='XREF=')
14211421

1422-
tmp_str=f'{tmpl:30} ; {" ":8} {xrefstr}'
1422+
tmp_str=f'{tmpl:37} ; {xrefstr}'
14231423
if args.xref == "on":
14241424
for tmp in labels[program_counter]:
14251425
tmp_str=tmp_str+f'{hexstyle}{tmp:X} '

0 commit comments

Comments
 (0)