Homework 5

EECE 417


Program

Purpose

This program is intended to give practice programming in Pentium assembly language.

Program Statement

Write a Pentium (not SASM!) program that:

Example Runs

Enter string:
bUCky wIns 28-0!
The new string is:
BucKY WiNS 28-0!
Enter string:
0Oo I1i
The new string is:
0oO i1I

Requirements

  1. Your program must contain adequate comments (documentation). Such comments include your name and section number at the top of the program. They also include a description of the program, as well as variable descriptions and comments about the code itself.
  2. Your program must use at least one procedure!!!
  3. Use Pentium instructions only! Do not use SASM instructions! Do not include the statement
  4.      include sasmacros.inc
    in your program. Instead, put in the statement
         include Pmacros.inc
    You will need to get a copy of the file Pmacros.inc. It is found on a link on the textbook website.
     
  5. You must read all characters of the input string before any characters of the output string are printed out.
  6. Input character strings will be 80 characters or less. Store the characters of the string in an array.
  7. Hints



    Homework

    1. (10 points, 5 each)

    2. Consider a two dimensional array of IEEE double-precision floating-point numbers (eight bytes each). Let the row index, the first index, vary from 2 to 8, while the column index varies from 0 to 5. Assume that the array is stored in row-major order beginning at address 0x00000040.
    3. (5 points)

    4. A pointer to an element of an array is in register edx. Give a single Pentium instruction that will subtract 4 from this array element.
       
    5. (25 points)
    6. Handing In the Assignment

      For this assignment, you will need to turn in a single zip file. To make grading easier, please name the file hw5.GX.zip.  No printout will be turned in.