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.
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.