4.8 Floating Point (Optional/Extra Credit)4 Schedule4.6 Pointers and addressing4.7 Structures

4.7 Structures

4.7.1 Reading and Web Sites

  1. Look at memory addressing again.

4.7.2 Notes

4.7.3 Lab Assignment, Structures

Write a program in assembly language that:
  1. Prints your name, class (CIS250), the date and "Structures"
  2. Write a bubble sort routine that is passed the start of a list of structures. Sort using first field as a sort key of unsigned numbers, Re-arrange the pointers, NOT the data.
  3. Write a bubble sort routine that is passed the start of a list of structures. Sort using second field as a sort key of signed numbers, Re-arrange the pointers, NOT the data.
  4. Print the structures prior to any sort.
  5. Sort on the first field -- ascending.
  6. Print the structures using my subroutine.
  7. Sort on the second field -- descending.
  8. Print the structures using my subroutine.
  9. The structure is set up as follow:

Turn in a printed error free listing and the output of your program. Include a copy of any testing that you did to verify the program was correct.


Instructor: Louis Taber, ltaber(at)uml.lt.Tucson.AZ.us (520) 206-6850
My new web Home site in Cleveland, OH
The Pima Community College web site

4.8 Floating Point (Optional/Extra Credit)4 Schedule4.6 Pointers and addressing4.7 Structures