22/08/2003
Copyright Teemu Kerola 2003
Taulukon
alaindeksi ei ala nollasta (3)
for
(int i=20; i < 50; ++i)
T[i] = 0;
I DC 0
T DS 30 ;
30 alkiota
Tlow DC
20 ; alaraja
Thigh DC
50 ; yläraja+1
…
T[20]
T[21]
T[49]
T:
T+1:
T+29:
LOAD R1, =20
STORE R1, I
Loop LOAD R2, =0
LOAD R1, I
SUB R1, Tlow
STORE R2, T(R1)
LOAD R4, I
ADD R4, =1
STORE R4, I
LOAD R3, I
COMP R3, =50
JLES Loop
indeksitarkistukset...