Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Filename: Strings.asm Description: Write a program that uses procedures (specifically the two procedures as described below), so that the input from the user determines how

Filename: Strings.asm

Description: Write a program that uses procedures (specifically the two procedures as described below), so that the input from the user determines how many times to generate random strings. Do not generate 1 string and repetitively display it. Each string generated will be unique.

1. Create a procedure (EnterInt) that asks for an unsigned integer input (N) from a user. The procedure must pass this integer back to the calling procedure as an argument (i.e. in a register).

2. Create a procedure (RStr) that generates a string of length L, where L is between 7 and 32, containing random CAPITAL letters. When calling the RStr procedure, pass the value of N (from EnterInt) in ECX, and pass the offset to an array of bytes in EDX. This array will hold the randomly generated string. 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.

Use the Irvine library to

a) Print each randomly generated string.

b) To require a key press before exiting the program.

c) Set the seed for random number generation.

d) Generate a random unsigned integer in the required range.

Specifications:

1. All data from the user will be saved into an appropriately sized and declared variable.

2. The output will be shown in the console window with one string per line.

3. The string will only have Capital letters.

4. You must use indexed addressing

. 5. You must have at least 2 procedures; each with a proper description.

6. None of the actual work for this assignment will be in main PROC. Only calls to appropriate procedures. It may be necessary to mov data into registers for each call, but this should be minimal

This is an assembly language problem, Is there someone to help me on this problem?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago