Beginner needs help - accessing an array

AssemblerJoe's Avatar, Join Date: Feb 2010
Newbie Member
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.
virxen's Avatar, Join Date: Nov 2009
Pro contributor
i think you want this one

lw $t0,5000($0)