50
CHAPTER 2 CPU
■Restrictions on Branch Instructions with Delay Slots
❍Instructions that can be placed in delay slots
An instruction that can be executed in the delay slo t must satisfy all of the following conditions:
•One-cycle instruction
•Non-branch instruction
•Instruction whose operation is not affected even when the e xecution order changes
"One-cycle instruction" is an instruction for w hich 1, a, b, c, or d is indicated in the cycle count
column in the list of instructions.
❍Step-trace-trap
No step-trace-trap is generated between the delay slot and the exec ution of the branch
instruction having the delay slot.
❍Interrupt/NMI
No interrupt/NMI is accepted between the delay slot and t he execu tion of the branch instructi on
having the delay slot.
❍Undefined-instruction exception
Even if an undefined instruction is placed in the delay slot , no undefined-instruction excepti on
occurs. The undefined instruction works as the NOP instruc tion