cours_progra/bac1/q2/fonctio/tp2/spim-fonction-call.s
Debucquoy 4fd7542f03
.
2023-09-20 15:18:20 +02:00

21 lines
182 B
ArmAsm

.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