def interpret_instruction(instruction, parameter):
    """ Interprets an instruction and returns offset to next command and accumulator value.

    :param instruction: acc, jmp or nop
    :param parameter: signed integer
    :return: (jump_offset, accumulator_offset)
    """
    if instruction == 'acc':
        return 1, parameter
    elif instruction == 'jmp':
        return parameter, 0
    else:
        return 1, 0