Write generic instructions to compute W = x - y * (z + y / (x - y)) using a processor that supports:
a) 3-address instructions, using 3 registers [3 marks]
b) 2-address instructions, using 2 registers [3 marks]
c) 1-address instructions, using the accumulator [3 marks]
d) a zero-address instruction on a stack-based processor. Show the stack. [3 marks]
You may assume operations in the following table where R1, R2, R3 are registers and A is a memory address.