Conceptual MIPS related question

This is a discussion on Conceptual MIPS related question within the Tech Board forums, part of the Community Boards category; Hey guys, I've been trying to work my head around this problem for ages but I just don't understand what ...

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    210

    Conceptual MIPS related question

    Hey guys,

    I've been trying to work my head around this problem for ages but I just don't understand what to do.

    Given this code:
    ADD rd, rs, rt NAND rd, rs, rt
    LUI rd, imm
    BEQ rs, rt, addr
    LW rd, (rt)
    SW rs, (rt)
    LLI rd, imm
    JALR rd, rs

    The earlier parts of the question asked me to the number of bits in the registers, opcode. And I did
    Each opcode = 3 bits
    Each register =3 bits
    Immediete = 8 bits

    So this is what I don't get.

    If LW and SW use register indirect addressing, how many addresses can this machine index?

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    210
    I know that register indirect addressing means that the value that needs to be loaded or stored, its address is found in the register rt.
    But how can I determine how many addresses this machine needs to index?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conceptual question about fgets
    By fazio93 in forum C Programming
    Replies: 6
    Last Post: 07-08-2013, 06:13 AM
  2. Conceptual question
    By mgracecar in forum C Programming
    Replies: 27
    Last Post: 06-27-2013, 04:46 PM
  3. Conceptual question about writeable file descriptors
    By Overworked_PhD in forum Linux Programming
    Replies: 2
    Last Post: 11-26-2007, 03:49 PM
  4. A conceptual question on using DLL'd
    By Niara in forum Windows Programming
    Replies: 1
    Last Post: 09-08-2005, 03:02 AM
  5. disjoint sets conceptual question
    By axon in forum C++ Programming
    Replies: 1
    Last Post: 03-01-2004, 09:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21