Examine the following fragment of RISC-V code. The symbol "..." means one or more instructions.
PC instr. | PC instr. | PC instr.
-------------------------+---------------------------+-------------------------
| ... B: ... | ... C: ...
... ... | ... ... | ... ...
152 add x24,x0,x0 | 240 add x24,x0,x23 | 360 add x20,x0,x21
156 addi x23,x24,4 | ... ... | 364 addi x24,x20,4
160 addi x22,x24,16 | 260 jal x1, C | ... ...
164 addi x24,x24,2 | ... ... | 388 jalr x0,0(x1)
168 add x20,x22,x24 | 280 lw x22,0(x20) |
172 jal x1, B | ... ... |
176 ... | 300 jalr x0,0(x1) |
Assume callee save strategy is used.
Based on the information provided in the code, show what is contained in the stack when the PC is in the following locations.:
168, 240, 260, 360, 364, 388, 280, 176.
Assume that lower-numbered registers are pushed onto the stack first, and that the stack is empty prior to execution. Assume that the stack pointer is initialized to 10 000|Hex.