Results 1 to 3 of 3

Thread: [resolved]MIPS 32 question about arrays

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member voidflux's Avatar
    Join Date
    Jun 2003
    Location
    Brockway, PA
    Posts
    290

    [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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width