def gen_end(first_instruction_address):
    """ Generate an end record. """
    
    # specify the size of each column
    col2_size = 6
    
    # content for each column
    col1 = "E"
    col2 = hex(first_instruction_address)[2:].zfill(col2_size).upper()
    
    return col1 + col2