lab5 - EEC 70: Computer Structures and Assembly Programming...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EEC 70: Computer Structures and Assembly Programming Winter Quarter 2006 Laboratory Exercise 5: Sorting in MIPS Assembly Language Due Date: Friday, March 3 2006 , 5:00 pm Full Points 100 Problem Description In the skeleton file attached (also available on the web) you will find an array of structures (or records) stored in the memory corresponding to the C declaration struct player { char *name; int ppg; } Kings[20]; Each record has two fields - The first field is the name of a Kings ball player 8 characters long (including the null character at the end) and the second field is the current points per game (ppg) according to ESPN.com Your task is to write a MAL (MIPS Assembly Language) program to sort the Kings players in the descending order of the points per game and print the sorted array, one record per line. The name and the ppg should be separated by one space. You cannot use SAL instructions in this laboratory exercise . You have to use MAL. The instruction set for MAL is giving on pages 220 and 221 of your book. What do you have to do?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/14/2008 for the course EEC 70 taught by Professor Wilken during the Spring '05 term at UC Davis.

Page1 / 2

lab5 - EEC 70: Computer Structures and Assembly Programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online