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

fix stupid names

parent 236fa209
......@@ -19,49 +19,49 @@ main:
# TODO: syscall to synch the time
call_zero:
print_zero:
la $a0, zero
j print
call_one:
print_one:
la $a0, one
j print
call_two:
print_two:
la $a0, two
j print
call_three:
print_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
bneq $t1, $zero, print_twenty_three
la $a0, three
j print
call_twenty_three:
print_twenty_three:
#TODO
call_four:
print_four:
la $a0, four
j print
call_five:
print_five:
la $a0, five
j print
call_six:
print_six:
la $a0, six
j print
call_seven:
print_seven:
la $a0, seven
j print
call_eight:
print_eight:
la $a0, eight
j print
call_nine:
print_nine:
la $a0, nine
addi $t0, $t0, 1
j print
......@@ -76,23 +76,23 @@ unit:
xor $v0, $v0, $v0
# $t0 is a flag at 1 iff an update is needed
xor $t1, $t1, $t1
beq $a1, $t1, call_zero
beq $a1, $t1, print_zero
addi $t1, $t0, 1
beq $a1, $t1, call_one
beq $a1, $t1, print_one
addi $t1, $t0, 1
beq $a1, $t1, call_two
beq $a1, $t1, print_two
addi $t1, $t0, 1
beq $a1, $t1, call_three
beq $a1, $t1, print_three
addi $t1, $t0, 1
beq $a1, $t1, call_four
beq $a1, $t1, print_four
addi $t1, $t0, 1
beq $a1, $t1, call_five
beq $a1, $t1, print_five
addi $t1, $t0, 1
beq $a1, $t1, call_six
beq $a1, $t1, print_six
addi $t1, $t0, 1
beq $a1, $t1, call_seven
beq $a1, $t1, print_seven
addi $t1, $t0, 1
beq $a1, $t1, call_eight
beq $a1, $t1, print_eight
digits:
......
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