Professional Documents
Culture Documents
Assignments
1. Write instructions sequences to compute X = (P/Q) * ((R - S) * T) in one address, two address
and three address machines.
2. Evaluate X=(A*B)+(C+ A/D - E) using zero-address, one-address, two-address and three-address
instructions.
3. Write the sequence of control steps required for the following instructions:
(i)
(ii)
MUL R1,(R2)
SUB (R1),R2