Question: Filename: Mystrings.asm Description: Write a program that uses the procedures to accomplish the functions outlined below. The input from the user (UserIn) determines how many
Filename: Mystrings.asm Description: Write a program that uses the procedures to accomplish the functions outlined below. The input from the user (UserIn) determines how many times to generate random strings. (Do not generate 1 string only and repetitively display it.) Each string generated will be unique. Remember, in general, a procedure should be fairly simple and accomplish 1 basic step. You may call Irvine procedures from your procedures. An example: Your procedure gets input from the user, you can call an Irvine function from within your procedure to do this. Use of dumpregs/dumpmem in the submitted files is discouraged and will result in a loss of points.
1. Create a procedure (UserEnter) that asks for an unsigned integer input (UserIn) from a user. The procedure must pass this integer back to the calling procedure in a register. This number will determine how many randomly generated strings to print. Your procedure must tell the user what to do. Dont just present a blank screen waiting for imput.
2. Create a procedure (Strings) that creates a string of random length. You will need a working array to temporarily store a string. Declare this array in this procedure. This procedure may call other(s) of your procedures. NOTE: You may declare an array of the maximum size since you dont know what the random string length will be. Use indexed addressing to move through your array.
3. Prior to generating the random string, you must call a procedure (HowMany) that generates a number L between 10 and 34. L will determine how long the string will be. Each string should be of a different length. The UserIn determines how many strings to generate. This procedure determines how long the strings will be. This procedure may call other(s) of your procedures.
4. Create a procedure (Alpha) that randomly generates a Capital Letter. This letter will be passed back to the Strings procedure for insertion into the String. This procedure should be called L times. 5. You will need to clear the temp string after using it. Create a procedure (ClrString) to do this.
I'm mostly having trouble creating #3, I get unhandled exception errors when I try to step through the procedure.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
