def dump_opcode(self, f=sys.stdout):
    f.write(str(self.op))
    if (self.op == DBG_ADVANCE_PC):
        f.write(('(%u)' % self.addr_offset))
    elif (self.op == DBG_ADVANCE_LINE):
        f.write(('(%u)' % self.line_offset))
    elif (self.op == DBG_START_LOCAL):
        f.write(('(register_num=%u, name_idx=' % self.register_num))
        if (self.name_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.name_idx))
        f.write(', type_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX)')
        else:
            f.write(('%u)' % self.type_idx))
    elif (self.op == DBG_START_LOCAL_EXTENDED):
        f.write(('(register_num=%u, name_idx=' % self.register_num))
        if (self.name_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.name_idx))
        f.write(', type_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.type_idx))
        f.write(', sig_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX)')
        else:
            f.write(('%u)' % self.type_idx))
    elif ((self.op == DBG_END_LOCAL) or (self.op == DBG_RESTART_LOCAL)):
        f.write(('(register_num=%u)' % self.register_num))
    elif (self.op == DBG_SET_FILE):
        f.write(('(name_idx=%u)' % self.name_idx))
    elif (self.op >= DBG_FIRST_SPECIAL):
        f.write((' (addr_offset=%u, line_offset=%i)' % (self.addr_offset, self.line_offset)))
def dump_opcode(self, f=sys.stdout):
    f.write(str(self.op))
    if (self.op == DBG_ADVANCE_PC):
        f.write(('(%u)' % self.addr_offset))
    elif (self.op == DBG_ADVANCE_LINE):
        f.write(('(%u)' % self.line_offset))
    elif (self.op == DBG_START_LOCAL):
        f.write(('(register_num=%u, name_idx=' % self.register_num))
        if (self.name_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.name_idx))
        f.write(', type_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX)')
        else:
            f.write(('%u)' % self.type_idx))
    elif (self.op == DBG_START_LOCAL_EXTENDED):
        f.write(('(register_num=%u, name_idx=' % self.register_num))
        if (self.name_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.name_idx))
        f.write(', type_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX')
        else:
            f.write(('%u' % self.type_idx))
        f.write(', sig_idx=')
        if (self.type_idx < 0):
            f.write('NO_INDEX)')
        else:
            f.write(('%u)' % self.type_idx))
    elif ((self.op == DBG_END_LOCAL) or (self.op == DBG_RESTART_LOCAL)):
        f.write(('(register_num=%u)' % self.register_num))
    elif (self.op == DBG_SET_FILE):
        f.write(('(name_idx=%u)' % self.name_idx))
    elif (self.op >= DBG_FIRST_SPECIAL):
        f.write((' (addr_offset=%u, line_offset=%i)' % (self.addr_offset, self.line_offset)))