Figure 3: The register values before the call to search() at line 19 in Listing 3.

R0  = 0x18223c
R1  = 0xa
R2  = 0x3
R3  = 0x37
R4  = 0x0
R5  = 0x1c30
R6  = ???
R7  = ???
R8  = 0x182310
R9  = 0x182308
R10 = ???
FP  = ???
IP  = 0x18225c
SP  = 0x18223c
LR  = 0x13c
PC  = 0xa8