def next_opcode(code, offset):
n = len(code)<EOL>while offset < n:<EOL><INDENT>op = code[offset]<EOL>offset += <NUM_LIT:1><EOL>if op >= HAVE_ARGUMENT:<EOL><INDENT>offset += <NUM_LIT:2><EOL>pass<EOL><DEDENT>yield op, offset<EOL>pass<EOL><DEDENT>yield -<NUM_LIT:100>, -<NUM_LIT:1000><EOL>pass<EOL>
Return the next opcode and offset as a tuple. Tuple (-100,
    -1000) is returned when reaching the end.