Question: please show work and explain 5) [2 marks] Read through the following Assembly code, and examine the initial memory layout: Memory Address Value ld $0x1000,
please show work and explain
5) [2 marks] Read through the following Assembly code, and examine the initial memory layout: Memory Address Value ld $0x1000, ro ld $0x2000, r1 ld $3, r2 ld (ro), r3 ld (ri, r2, 4), r4 ld (ri, r3, 4), r5 st r4, (ri, r3, 4) not r3 inc r3 add r3, r5 st r5, (ri, r2, 4) Ox1000 Ox1004 Ox1008 2 5 1 14 4 Ox2000 Ox2004 Ox2008 Ox200c Ox2010 Ox2014 Ox2018 1 19 Fill in the memory diagram after the instructions above have finished execution. Memory Address Value Ox1000 Ox1004 Ox1008 Ox2000 Ox2004 Ox2008 Ox200c Ox2010 Ox2014 Ox2018 5) [2 marks] Read through the following Assembly code, and examine the initial memory layout: Memory Address Value ld $0x1000, ro ld $0x2000, r1 ld $3, r2 ld (ro), r3 ld (ri, r2, 4), r4 ld (ri, r3, 4), r5 st r4, (ri, r3, 4) not r3 inc r3 add r3, r5 st r5, (ri, r2, 4) Ox1000 Ox1004 Ox1008 2 5 1 14 4 Ox2000 Ox2004 Ox2008 Ox200c Ox2010 Ox2014 Ox2018 1 19 Fill in the memory diagram after the instructions above have finished execution. Memory Address Value Ox1000 Ox1004 Ox1008 Ox2000 Ox2004 Ox2008 Ox200c Ox2010 Ox2014 Ox2018
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
