Operation Of Branch Instruction Without Delay Slot - Fujitsu FR60 Hardware Manual

32-bit microcontroller mb91301 series
Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 3 CPU AND CONTROL UNITS
3.9.2

Operation of Branch Instruction without Delay Slot

In operation without a delay slot, instructions are executed in the order in which they
are specified. An instruction immediately following a branch is never executed before
it.
■ Branch Instructions without Delay Slot
Instructions written as follows perform a branch operation without a delay slot:
JMP
BRA
BC
BV
BLE
■ Operation of Branch Instruction without Delay Slot
In operation without a delay slot, instructions are executed in the order in which they are
specified. An instruction immediately following a branch is never executed before it.
[Example]
;
LABEL :
A branch instruction without a delay slot is executed in two cycles if a branch occurs and in one
cycle if no branch occurs.
Since no appropriate instruction can be placed in the delay slot, this instruction results in a more
efficient instruction code than a branch instruction with a delay slot and with NOP specified.
For both optimum execution speed and code efficiency, select an operation with a delay slot if a
valid instruction can be placed in the delay slot; otherwise, select an operation without a delay
slot.
78
@Ri
CALL
label9
BNO
label9
BNC
label9
BNV
label9
BGT
List of instructions
ADD
R1,
R2
BRA
LABEL
MOV
R2,
R3
...
ST
R3,
@R4
label12
CALL
label9
BEQ
label9
BN
label9
BLT
label9
BLS
;
;
Branch instruction (without a delay slot)
;
Not executed
;
Branch destination
@Ri
RET
label9
BNE
label9
BP
label9
BGE
label9
BHI
label9
label9
label9
label9

Advertisement

Table of Contents
loading

Table of Contents