Readd void parameters

This commit is contained in:
octorock
2021-03-08 19:48:38 +01:00
parent 5e2af32bb1
commit a352ff9722
39 changed files with 35 additions and 60 deletions
@@ -31,7 +31,7 @@ def print_rest_bytes(ctx):
def disassemble_command(ctx: Context, add_all_annotations=False):
global used_labels
if add_all_annotations or ctx.script_addr + ctx.ptr in used_labels:
if (add_all_annotations or ctx.script_addr + ctx.ptr in used_labels) and ctx.ptr != 0:
# print offsets to debug when manually inserting labels
print(f'{get_script_label(ctx.script_addr + ctx.ptr)}:')
cmd = struct.unpack('H', ctx.data[ctx.ptr:ctx.ptr + 2])[0]