Assembly Language (cont.)
Pseudo-instructions: extend the instruction set for convenience
Examples
- move $2, $4 # $2 = $4, (copy $4 to $2)Tranlates to:add $2, $4, $0
- li $8, 40 # $8 = 40, (load 40 into $8)addi $8, $0, 40
- sd $4, 0($29) # mem[$29] = $4; Mem[$29+4] = $5sw $4, 0 ($29)sw $5, 4($29)
- la $4, 0x1000056c # Load address $4 = <address>lui $4, 0x1000ori $4, $4, 0x056c