Project 2
Requirements Specfication
Write an assembly language program that will do the following:
- Print your name and SSAN
- Prompt the user to enter a message of less than 255 characters.
For normal credit, assume that the message is only letters.
For five per cent extra credit, make it work with all characters.
- Using array addressing convert every lower-case letter to upper-case
Hint:
| 'a' | 01100001 |
| 'A' | 01000001 |
You have been taught one instruction that can make
this change!
- Using array addressing and pointers, print out the array in reverse order
- Print the number of characters the user typed in.
Program Header Comment Block
Use the following comment block at the beginning of your source code:
;; Filename: first.asm
;; Name: Ima Student
;; SSAN: 123-45-6789 (Could be XXX-XX-6789)
;; Date: 27 Sep 99
;; Course/section: CMSC-211 0301
;; Description: (Your psuedocode goes here)
;; Notes: (As needed, such has how to assembly)
Sample output
My name is Bill Gates and my SSAN is 666-66-6666
Enter a message of less than 255 characters: I love programming
GNIMMARGORP EVOL I
You entered 18 characters.
The part in red is what is typed in when the program executes. The
green part is what your program will compute and display. This will
change if the part in red is changed at runtime.
CSEE |
211 |
211 F'99 |
lectures |
news |
help
Monday, 08-Nov-1999 21:05:59 EST