def next_line(last_line, next_line_8bit):
<EOL>base_line = last_line - (last_line & <NUM_LIT:255>)<EOL>line = base_line + next_line_8bit<EOL>lower_line = line - <NUM_LIT><EOL>upper_line = line + <NUM_LIT><EOL>if last_line - lower_line <= line - last_line:<EOL><INDENT>return lower_line<EOL><DEDENT>if upper_line - last_line < last_line - line:<EOL><INDENT>return upper_line<EOL><DEDENT>return line<EOL>
Compute the next line based on the last line and a 8bit next line.

    The behaviour of the function is specified in :ref:`reqline`.

    :param int last_line: the last line that was processed
    :param int next_line_8bit: the lower 8 bits of the next line
    :return: the next line closest to :paramref:`last_line`

    .. seealso:: :ref:`reqline`