This commit is contained in:
Debucquoy
2023-09-20 15:18:20 +02:00
parent 00d0cdfaf3
commit 4fd7542f03
228 changed files with 351 additions and 12 deletions

View File

@ -0,0 +1,27 @@
.data
ask: .ascii "Entrez un nombre:"
.text
main:
# Print(ask)
li $v0 4
la $a0 ask
syscall
# read()
li $v0 5
syscall
li $t0 2 #base
divi:
div $v0, $t0
li $v0, 1
mfhi $a0
syscall
mflo $v0
bne $v0, 0, divi
jr $ra