def read_from_file(filename):
    """
    A function to read the assembly code from a file.
    It take a file by its name, reads it line by line and 
    returns a list containing all the assembly instructions
    """
    # Using readline() 
    instructions = []
    file1 = open(filename, 'r') 
    count = 0
    
    while True: 
        count += 1
    
        # Get next line from file 
        line = file1.readline() 
    
        # if line is empty 
        # end of file is reached 
        if not line: 
            break
        instructions.append(line.strip())
    
    file1.close()

    return instructions