Question
The objective of this problem is to deal with set of student records that are saved in sequence in the memory. The beginning of the
The objective of this problem is to deal with set of student records that are saved in sequence in the memory. The beginning of the list (first record) is at location LIST in the memory. For each student, a record consists of the students identification (id) number (4 bytes), followed by the scores the student earned on three tests (each test 4 bytes). There are n students in the class, and the value n is stored in location LOCN. The memory is byte addressable and the word length is 32 bits. Write a subroutine that find the address of a certain student by matching his/her student identification number and calculate the average of his/her three tests. Parameters should be passed on the stack; the address of the student id and the average should be also returned on the stack. The content of registers should not be affected by the subroutine.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started