Question: 1. We have the following statement in a high level language: a1- (a2-a3) *a4+a5 Write the instructions needed to translate this high level statement into

 1. We have the following statement in a high level language:

1. We have the following statement in a high level language: a1- (a2-a3) *a4+a5 Write the instructions needed to translate this high level statement into assembly (machine) language if our machine has: A) 0-address Instructions: PUSH, POP, ADD, SUB, MUL B) 1-address instructions LOAD M, STORE M, ADD M, SUB M, MUL M C) 2 address instructions MOV (X-Y), ADD (X-X+Y), SUB (X-X-Y), MUL (XEX*Y) D) 3-address instructions: MOV (X-Y), ADD (X-Y+Z), SUB (X-Y-Z), MUL (X-Y*Z)

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!