Mips Instruction Format Cheat Sheet Page 5

ADVERTISEMENT

• Immediate addressing
The operand is a constant.
How can you execute
$s1 ¨ 7?
addi
$s1, $zero, 7 means $s1 ¨ 0 + 7
(add
immediate, uses the I-type format)
• PC-relative addressing
The operand address = PC + an offset
Implements
position-independent
codes. A small
offset is adequate for short loops.

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education