def check_encoding(self, f=sys.stdout):
    if (self.signed_offset == 0):
        f.write('error: "goto/16" has a zero offset (invalid encoding)\n')
    elif ((INT8_MIN <= self.signed_offset) and (self.signed_offset <= INT8_MAX)):
        f.write('warning: "goto/16" can be encoded as a "goto" more ')
        f.write('efficiently since (INT8_MIN <= offset <= INT8_MAX)\n')
        return 2
    return 0
def check_encoding(self, f=sys.stdout):
    if (self.signed_offset == 0):
        f.write('error: "goto/16" has a zero offset (invalid encoding)\n')
    elif ((INT8_MIN <= self.signed_offset) and (self.signed_offset <= INT8_MAX)):
        f.write('warning: "goto/16" can be encoded as a "goto" more ')
        f.write('efficiently since (INT8_MIN <= offset <= INT8_MAX)\n')
        return 2
    return 0