Assignment Description: 2 part assignment, instructions located in the parts sections. Follow instructions carefully and complete questions....

1 answer below »
assignment in the chat, no code involved


Assignment Description: 2 part assignment, instructions located in the parts sections. Follow instructions carefully and complete questions. ________________________________________________________________________ Part 1 (20pts) Change the code to instructions (binary code) int a = 10; //allocate 0x0010 int b = 20; //allocate 0x0271 int c = a x b; //allocate 0x0030 Hint: first to assembly, then to binary. also, this problem is related with indirect mode. _________________________________________________________________________ ________________________________________________________________________ Part 2 see the attached file, and answer questions. (80pts) Clarification on part 2 problem. 1) this question is asking you for the process of program flow and fill blanks, the entire program has a total of 12 steps, this is why I have 12 figures for you to fill. you need to figure out stack contents, as well as fp, sp register changes. 2) the code should be changed to the following: int main (void) { int a = 1; int b = 2; fc1(); } int fc1 (void) { int c = 3; int d = 4; fc2(); } int fc2 (void) { int e = 5; int f = 6; } ________________________________________________________________________
Answered Same DayFeb 21, 2022

Answer To: Assignment Description: 2 part assignment, instructions located in the parts sections. Follow...

Jahir Abbas answered on Feb 22 2022
110 Votes
MOV A,#10
MOV B,#20
MUL C,B
As no architecture is defined,
TI ARM Architecture is considered
1.

r7 pc=0x00006FE4
r6 lr=0x20001044
r5 sp=0x00003C41
r4 ir=0x21000000
r0 = 0x00000001
r1 = 0x00000010
r2 = 0x00001001
r3 = 0x00001010
2.
r7 pc=0x00006FE4
r6 lr=0x20001044
r5 sp=0x00003C41
r4 ir=0x21000000
r0 = 0x00000001
r1 = 0x00000010
r2 = 0x00001001
r3 = 0x00001010
3.
r7 pc=0x00006FE4
r6 lr=0x20001044
r5 sp=0x00003C41
r4 ir=0x21000000
r0 = 0x00000001
r1 = 0x00000010
r2 = 0x00001001
r3 = 0x00001010
4.
r7...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here