CSCI 365 Project Five: A Random String Generator Answered – MASM Assembly Language & Irvine32 Library

$45.00

Explore MASM assembly language programming through a random uppercase string generator. Covers user-defined procedures, EAX register parameter passing, BYTE arrays, constant string lengths, repeated procedure calls, and Irvine library console output. Delivered as a downloadable ZIP file containing the programming project solution for educational reference.

Original Work ?

Download Details:

  • Name: 5.ProjectFive-2aff7a.zip
  • Type: zip
  • Size: 75.63 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (5 votes)

CSCI 365 Project Five: A Random String Generator focuses on developing a MASM assembly language program that generates random uppercase alphabetic strings. The assignment explores user-defined procedures, register-based parameter passing using EAX, BYTE array pointers, symbolic constants, and Irvine library functions. Students implement a random string generator and test it through repeated procedure calls and console output.

Assignment Description

Objectives:

  1. Write user defined procedures
  2. Call and test user defined procedures
  3. Use Irvine.inc library to take input and display output.

Problem Description:

Create a procedure that generates a random string of Length L, containing all capital letters. When calling the procedure, pass the value of L in EAX, and pass a pointer to an array of byte that will hold the random string. Write a test program that calls your procedure 20 times and displays the strings in the console window. In your program, the random string size shall be preset as a constant.

How to See Result

You may notice that your console window will show up then quickly disappear. You have two ways to view your result from console window. One way is to set the break point at exit statement in main procedure. Another way is to add the following statement before exit statement in main procedure:

Call ReadChar

This will hold the console window to wait for your input. You can hit any key to close the console window. It is better if you add a prompt to tell user what to do. For instance: “Press any key to continue…”. To do so, you simply add

prompt BYTE “Press any key to continue…”, 0

in your .data section and add the following code before Call ReadChar:

move dx, OFFSET prompt

Call WriteString

Sample Run:

Due Date: Turn in YourNameProj5.asm via Blackboard. Due date will be announced on Blackboard.

Solution Overview

The solution addresses a MASM assembly procedure that generates fixed-length random strings containing uppercase letters. It covers passing string length through EAX, using BYTE array pointers, calling the procedure 20 times, displaying generated strings, and controlling console execution with Irvine library functions.