UMBC CMSC 211

CSEE | 211 | Current | lectures | news | help


Project 3

Requirements Specfication

Write a C program that will use inline assembly lanuage. The main() function shall call a function (such as convert() ), where main() will get the user's input, such as a name and pass it to the function convert(). In the function convert(), your inline assembly language will first convert the input buffer to upper.

Then return to C and using printf(), print out the buffer.

Then use inline assembly language for the second time in this function convert(), and convert the buffer to lower.

Finally, return to C and print out the buffer again, using printf(). Upon completion of the second printf(), return to the main() function and terminate the program.

Example Output

In the following example, the program displays what is in Blue and the user types what is in Red. Remember that this has to work for any dollar amount.

Enter a string: Gary Burt

GARY BURT
gary burt

Program Header Comment Block

Use the following comment block at the beginning of your source code:
;; Filename:       first.asm
;; Name:           Ima Student
;; SSAN:           6789  
;; Date:           3 October 2000
;; Course:         CMSC-211 
;; Description:    (Your psuedocode goes here)
;; Notes:          (As needed, such has how to compile)


CSEE | 211 | Current | lectures | news | help