stalllucy
February 26th, 2009, 04:34 PM
Hi...
I would like to print out first char ( Which is "s" ), then second char ( Which is "c" ), then ... all chars from the code below (with looping
str: .asciiz "school"
...
I can load chars with
---
lb $t1, char($t2) # t2 will be increased each itme
---
but I couldn`t print each char one by one...
I use
---
move $a0, $t1
li $v0, 4
---
but it aleays gives (null)...
Any suggestion how to print one single intgeger then another from an array ???
Thanks
I would like to print out first char ( Which is "s" ), then second char ( Which is "c" ), then ... all chars from the code below (with looping
str: .asciiz "school"
...
I can load chars with
---
lb $t1, char($t2) # t2 will be increased each itme
---
but I couldn`t print each char one by one...
I use
---
move $a0, $t1
li $v0, 4
---
but it aleays gives (null)...
Any suggestion how to print one single intgeger then another from an array ???
Thanks