You are on page 1of 1

When to

- After
- After
- After

use NOP
every lw, sw, lb, sb
every branch instruction: beq, bne...
every jump instruction: j, jal,....

How to load 32-bit numbers


- lui $t0, 0x8002 //load upper immediate
- li $t0, 0x0004 //CANNOT DO THIS COS WILL OVERRIDE PREVIOUS LUI
- so must load upper immediate
- then ori $t0, $t0, 0x0004
-lui $t0, 0x8002
-ori $t0, $t0, 0x0004

You might also like