Homework 2, Programming MadLib.
Short Description:
Write an assembly language program that plays a simple MadLib in x86 assembly using the NASM assembler on prog1.
Goals
When you finish this homework, you should have:- Demonstrated your ability to do string input and output.
- Save strings in memory.
Formal Description
Write a program that will allow the user to play a game of MadLib with the following storyA [PHRASE 1: programming language] Adventure. For my big assignment, I decided to write the entire project in [PHRASE 1]. My program was supposed to [PHRASE 2: impressive verb phrase], but instead it yelled "[PHRASE 3: dramatic error message or exclamation]". It repeated this exactly [NUMBER 1] times before crashing spectacularly. After debugging for [NUMBER 2] straight minutes, I discovered I had accidentally deleted a semicolon. Boy is [PHRASE 1] a picky language!This story was designed and written by ChatGPT, but I messed with it a bit.
Your program should prompt for each of the identified phrases or numbers. It should store each of these in memory, then print the story. Please keep the format above, including newlines.
Make sure that:
- Your program includes identifying information such as your name and program number.
- You list any collaborators, human or AI
- Your code is well documented.
- Your code runs on prog1
You should use the code files from our class.