Kuntz87
30-03-2007, 14:58
http://it.geocities.com/fliberat/arch2/marzo1.htm
potete vedere la traccia del secondo esercizio e dirmi se l'ho fatto giusto
grazie
.text
.globl main
main:
primaistruzione:
lb $t2, x
li $t3, 10
rem $t4, $t2, $t3
beqz $t4, secondaistruzione
j terzaistruzione
secondaistruzione:
add $t0, x, 1
sb $t0, y
la $t1, y
terzaistruzione:
add $t2, $t2, 1
sb $t2, x
j primaistruzione
potete vedere la traccia del secondo esercizio e dirmi se l'ho fatto giusto
grazie
.text
.globl main
main:
primaistruzione:
lb $t2, x
li $t3, 10
rem $t4, $t2, $t3
beqz $t4, secondaistruzione
j terzaistruzione
secondaistruzione:
add $t0, x, 1
sb $t0, y
la $t1, y
terzaistruzione:
add $t2, $t2, 1
sb $t2, x
j primaistruzione