.data hex: .asciiz "0123456789ABCDEF" q1: .asciiz "Entrez un nombre" .text main: li $v0, 4 la $a0, q1 la $t9, hex syscall li $v0, 5 syscall li $t0 16 #base divi: div $v0, $t0 mfhi $t2 addu $t9, $t9, $t2 lb $a0 0($t9) li $v0, 11 syscall mflo $v0 bne $v0, 0, divi jr $ra