UMBC CMSC211


Project 5 -- Fall 2002

Due: 14 Nov 2002

Description

Project 5 is to develop a C language program that will have embedded assembly language in in.


This must be done in Microsoft Visual C++. That is the only C compiler that is supported here at UMBC. We need you to use a version that we have access to when we are grading.


The C program will declare two strings of the same size. Ask the user to enter a string and then you will print out both strings, showing the starting conditions. All output is do be done in the C portion only.

Use the assembly language to move the data from the first string to the second string. Make sure that you set the first string to an empty string by setting the first element of the array to a null byte. When you move the string, you must copy it backwards and do a simple case conversion.

Your C program is to call a function called flipIt( ), and you must call flipIt() with the address of the two strings. In the function flipIt, you are to go into assembly, do the work and come out. All messages are to be printed out from the C code, using printf( ).

The output of your program will look like this (Green is from the program, and red is the user intput):


Enter a string: Move me! 
string A:  Move me!
String B:

Going into assembly language
Back from assembly language

String A:  
String B:  !EM EVOm  

Submission

submit the source file (the .c file) to your Blackboard Acount

Program Header Comment Block

Use the following comment block at the beginning of your source code:
;; Filename:       6789prj5.c
;; Name:           Ima Student
;; SSAN:           6789  
;; Date:           3 Dec 2002
;; Course:         CMSC-211 
;; Description:    
;;     Analysis:   
;;       Input:
;;       Output:
;;       Formulas:
;;       Constraints:
;;       Assumpitons:
;;     Design:     (Your psuedocode goes here.  Must be detailed)
;; Notes:          (As needed, such has how to assemble.)


UMBC CMSC211 CSEE |