22/08/2003
Copyright Teemu Kerola 2003
Aritmeettinen lauseke (3)
int a, b, c;
…
b
= 34;
a
= b + 5 * c;
tilan varaus
LOAD R1, =34
STORE R1, B
....
LOAD R1, B
LOAD R2, C
MUL R2, =5
ADD R1, R2
STORE R1, A
koodi
LOAD
R1,=5
MUL R1,C
ADD R1, B
STORE
R1,A
tai: