Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- letras: .byte 'a','e','i','o','u'
- .text
- .globl main
- main:
- leer cad
- #a0--puntero cad
- #a1-a a2-e a3-i a4-o a5-u
- lb $a1, letras
- lb $a2, letras+1 ...
- lb $t0, letras +3
- apilar t0
- funcion:
- lb $t0,$sp
- addi $sp,sp,1
- lb $t1, ($sp)
- addi $sp,$sp,1
- INICIAR 5 CONTADORES
- bucle:
- lb $t6,($a0)
- beq $t6,$zero
- beq $t6,$a1......$an
- addi $a0,$a0,1
- j bucle
- fin:
- $v0,$a0
- apilar los 3 contadores
- jr $ra
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement