function
This commit is contained in:
parent
d0ef521917
commit
00d0cdfaf3
20
q2/fonctio/tp2/spim-fonction-call.s
Normal file
20
q2/fonctio/tp2/spim-fonction-call.s
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.data
|
||||||
|
text: .asciiz "Hello I'm in my fct"
|
||||||
|
|
||||||
|
.text
|
||||||
|
main:
|
||||||
|
|
||||||
|
# Appel Fonction
|
||||||
|
or $t0 $zero $ra
|
||||||
|
jal fct
|
||||||
|
or $ra $zero $t0
|
||||||
|
jr $ra
|
||||||
|
|
||||||
|
fct:
|
||||||
|
|
||||||
|
li $v0, 4
|
||||||
|
la $a0, text
|
||||||
|
syscall
|
||||||
|
jr $ra
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user