CS320 Assignment #3
Date assigned: 3/7/05
Date due: 3/18/05
Points: 40

It's often the case when programming, an ASCII chart of printable characters is needed with associated decimal and hex values. Most books have this chart but it never seems to be very handy. The purpose of this assignment is to write an assembly language program which executes from DOS and asks the user to enter a character from the keyboard. Your program then prints a table of ASCII characters beginning with the character inputted from the keyboard and proceeding through until the end of the printable characters. Research the printable ASCII characters.

Your program is to execute from DOS and return to DOS (gracefully). Fill the screen, beginning with the character the user wants to see, and continue on placing 13 characters per line left justified in a field of 6. Under each character, place the decimal ASCII value for the character and under that place the hex ASCII value. The following is how your program is to work:

1) Ask the user to enter a printable character.
2) Print out a table of characters and ASCII values as follows after clearing the screen. The numbers in the first row are just for reference. Do not print these when you write your program. My example will assume someone entered the character 'A' at the keyboard.

 
12345678901234567890123456789012345678901234567890123456789012345678901234567890

A     B     C     D     E     F     G     H     I     J     K     L     M     
65    66    67    68    69    70    71    72    73    74    75    76    77
41    42    43    44    45    46    47    48    49    4A    4B    4C    4D

and so on. You get the picture!!

Note1: I am looking for a well thought out program and one that is designed very efficiently and cleanly. Use of well thoughout procedures in this program is essential. Further, each procedure is to have the following header:

;***********************************************************************
; Procedure:
;
; Purpose:
;
; Passed In:
;
; Passed Back:
;
; Author:
;
; Date:
;
;**********************************************************************
Note2: Create a nice user interface for the I/O in this program.

Note3: Save your program as DRASCII.ASM replacing the DR with your initials and place the program in the CS320S05 Drop Box by 11:00am on the assignment's due date. Also, to be considered on time, bring a stapled copy of your fully documented program to class by 11:00am on the assignment's due date.


©Douglas J. Ryan/ryandj@pacificu.edu