HW: MIPS (Part C)

  1. (2.39) Write MIPS assembly code that creates the following 32-bit constant and stores that value to register $t1.

        0010 0000 0000 0001 0100 1001 0010 0100
    

    This can be done using only instructions we have discussed in class, although you may use any of the instructions from the table in Figure 2.1 (p. 64), including ones we have not used in class, if you wish.

    This is essentially what the la LABEL pseudo-instruction does. The value being put into the register is the address associated with LABEL in the label table.

  2. (2.40) If the current value of the PC is
        0000 0000 0000 0000 0000 0000 0000 0000
    
    can you use a single jump instruction to get to the PC address represented by the constant in the previous question?