Successor Instruction
main()
{
int x,y,same; // $0 == 0 always
x = 43; // addi $1, $0, 43
y = 2; // addi $2, $0, 2
same = 0; // addi $3, $0, 0
if (x == y)
same = 1; // execute only if x == y
// addi $3, $0, 1
}
Instruction
Fetch
Instruction
Decode
Operand
Fetch
Execute
Result
Store
Next
Instruction
Previous slide
Next slide
Back to first slide
View graphic version