Beginner needs help - accessing an array

Newbie Member
7Feb2010,12:01   #1
AssemblerJoe's Avatar
Hello. I want to access a part of an array while only knowing it's start location in memory. As an example, say I want to access joe[2] when joe[] starts at memory cell 5,000. I need to do something like this:

lw $t0, 8(5000)

but am unsure of the exact syntax from knowing that the parentathes must contain a register. I dont know how to find the name of the register in memory at 5,000, so I'm currently stuck with:

lw, $t0, 8(?)

Please help. Thank you.
Pro contributor
16Feb2010,03:30   #2
virxen's Avatar
i think you want this one

lw $t0,5000($0)