April 23, 2001Systems Architecture I4 Immediate Addressing Many arithmetic operations involve small constants Example: (offset of 4 from stack pointer) –lw $t0, AddressofConstant4($zero) –add $sp, $sp, $t0 Remove overhead of extra load by storing constant in the instruction itself I-format instructions store a constant in the low order 16-bits Example: –addi $sp, $sp, 4 8 29 29 4
{}