CPSC 240 Midterm Programming Test

$30.00

Download Details:

  • Name: Midterm-Programming-0tvmop.zip
  • Type: zip
  • Size: 34.47 KB

Category:

Description

5/5 - (1 vote)

Instructions

This is an open source test.   You may use anything that you personally own.

Deliver the results

When you are finished send the source files as attachments to the usual place: holliday@fullerton.edu.   Put in the subject line   “240-5 program test”.

End time

The end is 3pm.  I am a person is who is not extremely strict on rules.  If you send me your program a little after 3pm I will be ok.  Don’t send it at 5pm because that is obviously too excessive.  I’ll be flexible with the ending time if you are reasonable too.

Professionalism and documentation

You don’t have time to be professional on test.  The only comments required on any test are:

Your name

“CPSC 240-5 Midterm Program”

Identification

I know I am suppose to make an effort to identify each person.  You all identified yourselves last week.  We’ll postpone the identification routine until the final.

ID card not required today.

Partial credit

If you can’t complete the full program as stated on the following pages ask yourself what can I make in these 2 hours for submission that will convince the professor that you know something about asm programming.  An extreme example is you make the “Hello World” program and you’ll gain 5 points.  Plan ahead.  What would you program if you needed the partial credit?

Problem statement

Create a function in asm that reverses the value in an array of long integers.

 

 

Here is the calling structure

 

 

 

Your job is to make the function in the red box.

More details

 

You should keep all the other functions (modules) in place.  When the reverse function has to exchange values in two cells then it should call the swap function.

 

 

Partial credit

 

There are opportunities here for partial credit.   Let’s suppose you don’t have time to make a Read_clock function.  Well, simply omit that function.

 

Suppose you don’t have time to make the swap function, well then, exchange tow values using any technique that works.

 

What if your data validation from the homework has bugs, well simply omit data validation.  Tell the user to only input correct integer data.