repositories
/
TD_IML.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
IML TD:
[TD_IML.git]
/
TD3
/
mips3.asm
1
.data
2
msg_addition: .asciiz "Valeur attendue 97, obtenue"
3
msg_soustraction: .asciiz "Valeur attendue 63, obtenue"
4
msg_multiplication: .asciiz "Valeur attendue 6111, obtenue"
5
msg_division: .asciiz "Valeur attendue , obtenue"
6
.text
7
la $t1,34
8
la $t2,63
9
add $t3,$t2,$t1
10
la $a0,msg_addition
11
li $v0,4
12
syscall
13
sub $t4,$t3,$t1
14
mult $t3,$t4
15
mflo $t5
16
div $t2,$t1
17
mflo $t6
18
mfhi $t7
19
20
21
22
23
la $v0,10
24
syscall