def parameter_code_sizer(opcode, raw_parameter_code_list):
    """Ensures parameter code list is the correct length, according to the particular opcode."""
    parameter_lengths = {1:3, 2:3, 3: 1, 4: 1, 5: 2, 6:2, 7: 3, 8:3, 9:1, 99:0}
    while len(raw_parameter_code_list) < parameter_lengths[opcode]:
        raw_parameter_code_list.append(0)
    return raw_parameter_code_list