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

fix stupid names

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