Commit 236fa209 authored by Noémie Fong's avatar Noémie Fong
Browse files

Modify to make use of li and la

parent 19ffb41a
......@@ -20,57 +20,54 @@ main:
# TODO: syscall to synch the time
call_zero:
addi $a0, $v0, zero
la $a0, zero
j print
call_one:
addi $a0, $v0, one
la $a0, one
j print
call_two:
addi $a0, $v0, two
la $a0, two
j print
call_three:
# HACK : s5 vaut 2 lorsque l'on traite des heures -> on vérifie la dizaine = 2
and $t1, $s5, $a2
bneq $t1, $zero, call_twenty_three
addi $a0, $v0, three
la $a0, three
j print
call_twenty_three:
#TODO
call_four:
addi $a0, $v0, four
la $a0, four
j print
call_five:
addi $a0, $v0, five
la $a0, five
j print
call_six:
addi $a0, $v0, six
la $a0, six
j print
call_seven:
addi $a0, $v0, seven
la $a0, seven
j print
call_eight:
addi $a0, $v0, eight
la $a0, eight
j print
call_nine:
addi $a0, $v0, nine
la $a0, nine
addi $t0, $t0, 1
j print
print
srav $t9, $t8, 16
lui $a0, $t9
ori $a0, $t8
addi $v0, $0, 4
li $v0, 4
syscall
jr $ra
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment