Q7. ] Given the following ARM64 assembly code for a function, add comments to each line, use its stack frame with corresponding variables, and trace the code execution to figure out what it does....


Q7. ] Given the following ARM64 assembly code for a function, add comments to<br>each line, use its stack frame with corresponding variables, and trace the code execution to<br>figure out what it does. Notice that local variables are stored in the function's stack frame.<br>Hint: this is a void function that takes two input parameters.<br>tunct:<br>sub sp. sp, #32<br>str<br>x0, (sp, 8]<br>Address<br>Contents<br>x1, [sp)<br>Idr x0, Isp, 81<br>str<br>SP<br>Sp + 4<br>Sp +8<br>Sp + 12<br>Sp + 16<br>Sp + 20<br>Sp + 24<br>Sp + 28<br>Idr wo, [x0]<br>str<br>wo, [sp, 28]<br>Idr x0, [sp)<br>Idr w1, [x0]<br>Idr x0, [sp, 8]<br>w1, [x0]<br>Idr x0, Isp)<br>str<br>Idr w1, [sp, 28]<br>str w1, [x0]<br>DOR<br>add<br>Sp. sp, 32<br>ret<br>

Extracted text: Q7. ] Given the following ARM64 assembly code for a function, add comments to each line, use its stack frame with corresponding variables, and trace the code execution to figure out what it does. Notice that local variables are stored in the function's stack frame. Hint: this is a void function that takes two input parameters. tunct: sub sp. sp, #32 str x0, (sp, 8] Address Contents x1, [sp) Idr x0, Isp, 81 str SP Sp + 4 Sp +8 Sp + 12 Sp + 16 Sp + 20 Sp + 24 Sp + 28 Idr wo, [x0] str wo, [sp, 28] Idr x0, [sp) Idr w1, [x0] Idr x0, [sp, 8] w1, [x0] Idr x0, Isp) str Idr w1, [sp, 28] str w1, [x0] DOR add Sp. sp, 32 ret

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here