Load Instructions Notes >
The
loading process in not performed immediately.
It takes one more instruction delay to complete the loading from memory into the general register. Example:
li t6,128
// set the brightness
The nop
instruction is not a real machine instruction, but the processor
Example:
li t6,128
// set the brightness
The example above takes less time to execute as the folowing: li t6,128
// set the brightness
|
Multiply/Divide Notes
The
result of a multiply or divide instruction is not presented
immediately in the HI/LO registers. The results can be accessed after two more instruction has been passed. Example:
The same
delay as above should be done when using divide
|
Jump/Branch Notes
The
branching occurs after executing the next following
intruction after the branch/jump instruction. Example:
When the
processor executes the jump/branch instruction,
0(pc)
= jal doit
|
Load/Store Examples >