def parse_opcode(token):
    """Extract the opcode and the mode of all params"""
    opcode = token % 100
    modes = [0, 0, 0, 0]
    if token > 100:
        for (i, mode) in enumerate(str(token)[-3::-1]):
            modes[i] = int(mode)
    return opcode, modes