UMBC CMSC211

Project 3 Due: 8 Oct

Requirements Specfication

Create two hexadecimal conversion charts. The values for the cells inside the charts must be calculated and printed out with the correct number of digits! You must also use three subprograms for this project, "main", one to calculate the values for each row and one to print each row. 1 Oct

Chart 1

The first should look like (Only the first four rows are shown, you must do all 16.):
 163162161160
00000000000
11000100101
22000200202
33000300303

Chart 2

The second one is converting the hex to decimal and should look like (Only the first four rows are shown, you must do all 16.):
 163162161160
00000
14096256161
28192512322
312288768483

Notice the number printed out so that they are aligned on the right side. You must make yours do the same thing. Hint: If the number has two digits and you need to have it moved over four places, output four blanks. You can make that modification by making a new version of PutDec that will always output six characters.

If you want to go from 15 to 0, instead of the way I have it, you may do so. Do both for five percent extra credit.

Program Header Comment Block

Use the following comment block at the beginning of your source code:
;;
;; Filename:       6789prj3.asm
;; Name:           Ima Student
;; SSAN:           6789  
;; Date:           8 Oct 2002
;; Course:         CMSC-211 
;;
;; Description (What are the program requirements):
;;    
;; Analysis (five parts):   
;;       Input:
;;       Output:
;;       Formulas:
;;       Constraints:
;;       Assumptions:
;;
;; Design:     (Your psuedocode goes here.  Must be detailed)
;;
;; Notes:          (As needed, such has how to assemble, if
;;                   it is necessary to do anything other than
;;                   ml 6789prj3.asm util.lib)
;;