Encoding an add instruction
Let’s translate:
Opcode for add is 000000 (p. A-55)
The funct for add is 100000
The code for $t0 is 01000 (p. A-23)
The code for $s1 is 10001
The code for $s2 is 10010
add $t0, $s1, $s2
Previous slide
Next slide
Back to first slide
View graphic version