Question: Write a program for computing X in the following formula for each of the 1, 2 and 3 address machines respectively using the given
Write a program for computing X in the following formula for each of the 1, 2 and 3 address machines respectively using the given instructions shown in Figure 2. x=(A+BC)+(D-E-F) 1 Address LOAD M STOREM ADD M SUB M MULM DIV M 2 Address MOVE (XY) ADD(X-X Y) SUB(X-X-Y) MULIX-XxY) DIV (X-X/Y) 3 Address MOVE(X-Y) ADD(XYZ) SUB (X-Y-Z) MUL(X-YxZ) DIV(X-Y/Z) Figure 2: Question 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
