Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) c = (a + b) /a d = b*(a + b) / a * c e = a* (c + d) Write the assembly to do

ID: 3787179 • Letter: 1

Question

1) c = (a + b) /a d = b*(a + b) / a * c e = a* (c + d) Write the assembly to do the following statements for each of the following architectures. Use the least number of instructions. a) Stack ISA b) Accumulator ISA 1) c = (a + b) /a d = b*(a + b) / a * c e = a* (c + d) Write the assembly to do the following statements for each of the following architectures. Use the least number of instructions. a) Stack ISA b) Accumulator ISA 1) c = (a + b) /a d = b*(a + b) / a * c e = a* (c + d) Write the assembly to do the following statements for each of the following architectures. Use the least number of instructions. a) Stack ISA b) Accumulator ISA

Explanation / Answer

1.

For c=(a+b)/a, the ISA are given below

For d = b*(a + b) / a * c ,the ISA are given below

For e = a* (c + d) ,the ISA are given below

                STACK ISA ACCUMULATOR ISA Push a load a Push b Add b Add div a Push a store c div Pop c