b) Convert the above assembly instructions into machine code and store them in the memory starting at address 10. address 10 11 12 13 14 15 16 17 18 19 20 content

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter20: Creating A Presentation
Section: Chapter Questions
Problem 5QY
icon
Related questions
Question

Please send me answer within 10 min!! I will rate you good for sure!! Please solve it correctly and provide explanation for your solution!!

Y = A + B * C/D - E
Temp1=A+B*C
mov(A,ebx); A=30
mov(B,eax); B=31
/**
* We Must Compare B * C first since
**/
int mul(C,eax);
mov(eax,Temp1);
Temp2=D-E;
mov(D,eax);// D=33,E=34
sub(E,eax);
mov(eax,Temp2); //34
Y = Templ/Temp2
idiv=(eax,eax);
mov(eax,y);//Y = 35
Transcribed Image Text:Y = A + B * C/D - E Temp1=A+B*C mov(A,ebx); A=30 mov(B,eax); B=31 /** * We Must Compare B * C first since **/ int mul(C,eax); mov(eax,Temp1); Temp2=D-E; mov(D,eax);// D=33,E=34 sub(E,eax); mov(eax,Temp2); //34 Y = Templ/Temp2 idiv=(eax,eax); mov(eax,y);//Y = 35
b) Convert the above assembly instructions into machine code and store them in the memory starting at address
10.
address
10
11
12
13
14
15
16
17
18
19
20
content
Transcribed Image Text:b) Convert the above assembly instructions into machine code and store them in the memory starting at address 10. address 10 11 12 13 14 15 16 17 18 19 20 content
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning