Branch Instructions Without Delay Slots - Fujitsu MB91F109 FR30 Hardware Manual

Fr30 series 32-bit microcontroller
Table of Contents

Advertisement

2.7.2

Branch Instructions without Delay Slots

Instructions including branch instructions without delay slots are executed in order of
coding.
Branch Instructions Without Delay Slots
The instructions represented as follows execute branching without delay slots:
JMP
BRA
BC
BV
BLE
Theory of Operation of Branch Instructions Without Delay Slots
Instructions including branch instructions without delay slots are executed in order of coding.
The instruction provided immediately before the branch instruction is not executed before
branching.
[Example]
;
LABEL :
The number of execution cycles for a branch instruction without a delay slot is two cycles when
it involves branching, or one cycle when it does not involve branching.
Since no dummy instruction is placed in the delay slot, the instruction coding efficiency is better
than that of a branch instruction with a delay slot containing a NOP instruction.
Selecting an operation with a delay slot when an effective instruction can be placed in the delay
slot and selecting an operation without a delay slot otherwise can satisfy both execution speeds
and coding efficiency.
@Ri
CALL
label9
BNO
label9
BNC
label9
BNV
label9
BGT
Instruction list
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
2.7 Instruction Overview
@Ri
RET
label9
BNE
label9
BP
label9
BGE
label9
BHI
label9
label9
label9
label9
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f109

Table of Contents