A singly linked list (Figure P3.53), whose first element is pointed at by r0, consists of elements
Question:
A singly linked list (Figure P3.53), whose first element is pointed at by r0, consists of elements whose head is a 32-bit address pointing to the next element in the list and a variable-length tail. The tail may be of any length greater than four bytes. The last element in the list points to the null address 0. Write a program to search the list for an element whose tail begins with the word in data register rl. On success, set r4 to 0xFF, and r0 should contain the address of the desired record. On failure, load rl with 0xFFFFFFFF.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Computer Organization And Architecture Themes And Variations
ISBN: 9781111987046
1st Edition
Authors: Alan Clements
Question Posted: