Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about .asciiz arrays and showing them to screen

Status
Not open for further replies.

Ciralia

Programmer
Oct 22, 2002
51
0
0
US
I have an array with values such as:

array: .asciiz "K"
.asciiz "Y"
.asciiz "7"


When I try to show the "7" to the screen using something like this:

add $t1, $0, 2 #initialize

la $a0, array($t1) #prints a string value
li $v0, 4
syscall

Nothing shows up on the screen. What's wrong with my code?
Keep in mind I am using MIPS assembly and using spim to compile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top