How to print vowels in mips assembly

I need to print vowels and here is my code and it prints from A to Z. any idea how I should change my code so that it only prints vowels. thanks in advance.

.text
main:
li  $s0,0x41


for:
move    $a0,$s0 
li  $v0,11      
syscall 

addi    $s0,$s0,1

li  $t0,0x5b
blt $s0,$t0,for     
j   stop
stop:   

      

+3


source to share


1 answer


Start with this:

.data
vowels: .asciiz "aeiou"
.text

      



Now write a loop to print each byte in turn vowels

.

+3


source







All Articles