Question: need help with these please thanks . 1. Assembly (Data Movement and Calculations) Update the Registers and Memory tables below with the final value of

 need help with these please thanks . 1. Assembly (Data Movement

and Calculations) Update the Registers and Memory tables below with the final

need help with these please thanks .

1. Assembly (Data Movement and Calculations) Update the Registers and Memory tables below with the final value of each of the registers and memory locations after executing Program 1. All values in memory are in Hex. All registers start uninitialized Answer in Hex using the standard 0x format. Initial Memory Contents 0x100 0x2 Final Memory text globl main 0x108 0x8 0x110 0x10 0x118 0xFF 0x120 0x29 main: movq $0x100, rdi call fun ret fun: leag adda movq 16 rdi, %rsi), %rcx, %rsi (%rsi), trax 8rcx Register Values movg $0x116, 4 (*rdx) ret rsi %rdi Program1 2. Assembly (High Level Interpretation) Convert the following C functions into Assembly Assembly Equivalent to Program 2 long funl (long x, long y) i int temp x + y; temp fun2 (temp); return tempi fun2( long x if(x1) return 1i return xfun2 (x-1 Program 2 1. Assembly (Data Movement and Calculations) Update the Registers and Memory tables below with the final value of each of the registers and memory locations after executing Program 1. All values in memory are in Hex. All registers start uninitialized Answer in Hex using the standard 0x format. Initial Memory Contents 0x100 0x2 Final Memory text globl main 0x108 0x8 0x110 0x10 0x118 0xFF 0x120 0x29 main: movq $0x100, rdi call fun ret fun: leag adda movq 16 rdi, %rsi), %rcx, %rsi (%rsi), trax 8rcx Register Values movg $0x116, 4 (*rdx) ret rsi %rdi Program1 2. Assembly (High Level Interpretation) Convert the following C functions into Assembly Assembly Equivalent to Program 2 long funl (long x, long y) i int temp x + y; temp fun2 (temp); return tempi fun2( long x if(x1) return 1i return xfun2 (x-1 Program 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!