3.4.2003
Teemu Kerola, Copyright 2003
–s DC
0
–i DC
1
–0: Taas LOAD R1, i
–1: MUL R1,R1
–2: ADD R1, s
–3: STORE R1, s
–4: LOAD R1, i
–5: ADD R1, =1
–6: STORE R1, i
–7: COMP R1, =21
–8: JLES Taas
–9: SVC SP, =HALT
Esimerkki:
TTK-91 Assembler käännös, 1.
vaihe
i = ?
s = ?
Taas = 0
tunnetaan