Click to See Complete Forum and Search --> : A very easy question (MIPS Assembly) !?


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

rxbagain
March 1st, 2009, 03:18 AM
You can do the same thing as my suggestion on your other thread (http://www.codeguru.com/forum/showthread.php?t=471629)