15.1.2004
Copyright Teemu Kerola 2003
TTK-91
kokonaislukuoperaatiot
•LOAD (”move”)
•ADD, SUB
•MUL
•DIV, MOD
ADD
R3, R1 ; R3 ¬ R3+R1
SUB
R3, =1 ; R3 ¬ R3-1
MUL
R3, Tbl(R1) ; R3 ¬ R3 * Mem(Tbl+R1)
LOAD R1,=14
DIV R1,=3 ; R1 ¬ 4
LOAD R1,=14
MOD R1,=3 ; R1 ¬ 2
LOAD
R3, R1 ; R3 ¬ R1