Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm really confused on this assignment. It's in assembly language kip irvine x86. Can i get help on part one and two. Thank you This

I'm really confused on this assignment. It's in assembly language kip irvine x86.

Can i get help on part one and two. Thank you

This assignment covers all chapters up to and including 5 only. 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.

Part 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).

Part 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

Print each randomly generated string.

To require a key press before exiting the program.

Set the seed for random number generation.

Generate a random unsigned integer in the required range.

Specifications:

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

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

The string will only have Capital letters.

You must use indexed addressing.

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

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.

You may use any command Chapter 5 and below. Commands from Chapters not yet covered in class will result in a reduction of 50% in your grade.

Your procedures must be called from main proc.

Data local to a procedure must be declared in that procedure, i.e. prompts. When using local data, you must have a .data and a .code in your procedure.

Part of the program will be graded on the basis of program style. I reserve the right to judge style as I deem fit for the assignment. The use of comments is required and not optional.

At this time, do not use any of the text box procedures from the Irvine Library.

Upload to Canvas prior to the due date.

Extra Credit ( 5 pts): Create a procedure (extracredit) which prints each string in a random foreground color (exclude black on black). The extra credit must meet all specifications as stated above. You may choose to write another procedure to determine the foreground color.

Note: If you choose to complete the extra credit, it MUST be submitted as a separate file AND you must also submit the assignment as stated above.

If you do the extra credit you must submit TWO files. One for the assignment and one for the extra credit.

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

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions