Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Pepin
sysdig
Commits
fbb6cce8
Commit
fbb6cce8
authored
Jan 15, 2017
by
Noémie Fong
Browse files
fix stupid names
parent
236fa209
Changes
1
Hide whitespace changes
Inline
Side-by-side
digital_clock.s
View file @
fbb6cce8
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment