4.10 Floating Point (Optional/Extra Credit)4 Class Schedule4.8 Subroutines - Recursive4.9 Structures

4.9 Structures

4.9.1 Reading and Web Sites

  1. Look at memory addressing again.

4.9.2 Notes

4.9.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, louis.taber.at.pima at gmail dot com (520) 206-6850
My web site in California
The Pima Community College web site

4.10 Floating Point (Optional/Extra Credit)4 Class Schedule4.8 Subroutines - Recursive4.9 Structures