|
-
Sep 13th, 2006, 06:21 PM
#1
Thread Starter
Hyperactive Member
[resolved]MIPS 32 question about arrays
Hello everyone!
I had a question on how this works.
If i have memory set up like this:
[0x10ff00ff] 32
[0x00ff00ff] 28
[0x0000ffff] 24
[0xffff0000] 20
[0x000011ff]16
[0x10ffff00] 12
[0xff00ffff] 8
[0xff0000ff] 4
[0x0000ff44] 0
32 bit data and the numbers are word address
I have the following:
register $s4 holds 12 decimal and the data in the memory array is as in the figure above, what is the value loaded into $t0 by the instruction: lw $t0,8($s4).
I said it was 8+12 = 20. So i looked at the word address 20, and i said, that 0xffff0000 is what is going to be loaded into $t0
can someone carlify this is correct?
Last edited by voidflux; Sep 14th, 2006 at 12:04 PM.
C¤ry Sanchez
Computer Science/Engineering
@ Penn State
IBM.zSeries Intern
Mandriva 2007
-
Sep 14th, 2006, 10:46 AM
#2
Re: MIPS 32 question about arrays
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 14th, 2006, 12:04 PM
#3
Thread Starter
Hyperactive Member
Re: MIPS 32 question about arrays
Thanks!
C¤ry Sanchez
Computer Science/Engineering
@ Penn State
IBM.zSeries Intern
Mandriva 2007
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|