This commit is contained in:
Debucquoy
2023-05-05 13:02:58 +02:00
parent 23a079c89a
commit cac30ebbb1
14 changed files with 253 additions and 0 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