def preprocessLines(sourceLines):
    """
    Delete comments from the lines and change them to upper case
    sourceLines - array of assembly lines with comments
    return: resulting array of lines
    """
    for i, line in enumerate(sourceLines):
        line = line.upper()
        line = line.split(";")[0] # trim comments
        sourceLines[i] = line
    return sourceLines