Question: 1. X = A B * ( C * D + E) a) on a general register CPU with 3-address instructions b)on a general register

1. X = A B * ( C * D + E)

a) on a general register CPU with 3-address instructions

b)on a general register CPU with 2-address instructions

c) on an accumulator-based CPU with 1-address instructions

d) on a stack-based CPU with 0-address instructions (note: in a stackbased machine, PUSH and POP are one-address instructions) Assume that each CPU has ADD, SUB, MUL and DIV instructions in addition to LOAD, STORE, MOVE, POP and PUSH instructions as appropriate in its instruction set. Also assume that operand A is in memory location MA, operand B is in memory location MB, and so on.

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!