Translating assembler statements
Source code (assembler instructions)
add $10, $8, $9
addi $9, $8, 33
mov $6, $7
addi $6, $7, 0 Pseudoinstruction
ASSEMBLER
Object code (machine instructions): bits
000000 01000 01001  01010  00000 100000
001000 01000 01001  00000  00000 100001
001000 00111 00110  00000  00000  00000
opcode    $rs      $rt    $rd  shamt function R-type
b31-26 b25-21 b20-16 b15-11 b10-6 b5-0
opcode    $rs      $rt immediate I-type
b31-26 b25-21 b20-16 b15-0