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. 

FIGURE P3.53 Address Data Head Address Data Address Data 0 Data Cengage Leaming 2014

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: