Generate code for the following sequence assuming hat n is in a memory location:
Determine the costs of the following instruction sequences:
a) LD RO, y
LD Rl, z
ADD RO, RO, Rl
ST x, RO
b) LD RO, i
MUL RO, RO, 8
LD Rl, a(R0)
ST b, Rl
c) LD RO, c
LD Rl, i
MUL Rl, Rl, 8
ST a(Rl), RO
d) LD RO, p
LD Rl, 0(R0)
ST x, Rl
LD RO, p
LD Rl, x
ST 0(R0), Rl
f) LD RO, x
LD Rl, y
SUB RO, RO, Rl
BLTZ *R3, RO