Please complete question 1 and question 2, and fill the following stack frame table, thank you! I will give you thumbs u
Posted: Sat May 14, 2022 4:37 pm
Please complete question 1 and question 2, and fill the
following stack frame table, thank you! I will give you thumbs up
if you do well!
Lab-3 Addressing Modes, Branch and Stack Frame- Full Score: 10 pts | Due: Wednesday 3/234 | Given the following ARM64 assembly am.s, copy it into Raspberry Pi, then use “gec-g-o am am.s" to compile it. You should be able to see a generated executable file "am”. الب strb WO, [sp, 38) .text global main .type main, %function اب maine sub mov movk movk movk str sp, Sp, #64 x0, 0x8899 x0, Ủxeeff, Isl 164 XO, Oxccdd, Isl 32- XO, Ox7abb, Isl 48 XO, [sp, 24] mov xo, sp mov x1, #3 Idr x2, [x0, x1, Isl #3] Idr x3, [x0, #48] cmp x3, x2 bge L1 Idr x0, (sp, 24] sub x0, x0, #0x564 str x0, (sp, 24] ܢ܀ L1: mov movk movk movk str x0, 0x77684 XO, Ox5566, Isl 16- XO, Ox3344, Isl 32 XO, Ox1122, Isl 48- XO, [sp, 48] Idr Idr strb Idr strb Idrb Idrb XO, (sp, 40] X0, [x2]- WO, (sp, 39] XO, [sp, 48] WO, (sp, 38] WO, (sp, 39) w1, (sp, 38) ܀ mov x0, sp llor add x0, sp, xzr add x0, x0, #24 str x0, [sp, 401 آب اسب w0,0 sp, sp, 64- mov strb mov mov add ret WO, 65 WO, (sp, 39) WO, 66 Open a terminal window, and run the program step by step in the debugger GDB by typing “gdb am" to figure out what it does. Answer these questions: 1. Add comments to each line of code to tell what they do. 2. What are the values in x2, x3, and wo, wl right before the last 3 lines? 3. Fill the following stack frame table: ܟ SP +8 +16 +242 +32e +40 +48 +56 ttttt
following stack frame table, thank you! I will give you thumbs up
if you do well!
Lab-3 Addressing Modes, Branch and Stack Frame- Full Score: 10 pts | Due: Wednesday 3/234 | Given the following ARM64 assembly am.s, copy it into Raspberry Pi, then use “gec-g-o am am.s" to compile it. You should be able to see a generated executable file "am”. الب strb WO, [sp, 38) .text global main .type main, %function اب maine sub mov movk movk movk str sp, Sp, #64 x0, 0x8899 x0, Ủxeeff, Isl 164 XO, Oxccdd, Isl 32- XO, Ox7abb, Isl 48 XO, [sp, 24] mov xo, sp mov x1, #3 Idr x2, [x0, x1, Isl #3] Idr x3, [x0, #48] cmp x3, x2 bge L1 Idr x0, (sp, 24] sub x0, x0, #0x564 str x0, (sp, 24] ܢ܀ L1: mov movk movk movk str x0, 0x77684 XO, Ox5566, Isl 16- XO, Ox3344, Isl 32 XO, Ox1122, Isl 48- XO, [sp, 48] Idr Idr strb Idr strb Idrb Idrb XO, (sp, 40] X0, [x2]- WO, (sp, 39] XO, [sp, 48] WO, (sp, 38] WO, (sp, 39) w1, (sp, 38) ܀ mov x0, sp llor add x0, sp, xzr add x0, x0, #24 str x0, [sp, 401 آب اسب w0,0 sp, sp, 64- mov strb mov mov add ret WO, 65 WO, (sp, 39) WO, 66 Open a terminal window, and run the program step by step in the debugger GDB by typing “gdb am" to figure out what it does. Answer these questions: 1. Add comments to each line of code to tell what they do. 2. What are the values in x2, x3, and wo, wl right before the last 3 lines? 3. Fill the following stack frame table: ܟ SP +8 +16 +242 +32e +40 +48 +56 ttttt