Actual Example (With Delay Slot) - Fujitsu MB91460 SERIES FR60 User Manual

32-bit microcontroller
Table of Contents

Advertisement

Chapter 7 Branch Instruction

3.Actual Example (with Delay Slot)

3. Actual Example (with Delay Slot)
3.1 JMP:D @Ri / CALL:D @Ri Instruction
Ri referred in JMP:D @Ri / CALL:D @Ri instruction remains intact even if instructions within delay
slot update Ri.
• Example
LDI:32
#Label,
JMP:D
@R0
LDI:8
#0,
...
3.2 RET:D Instruction
RP referred in RET:D instruction remains intact even if instructions within delay slot update RP.
• Example
RET:D
MOV
R8,
...
3.3 Bcc:D rel Instruction
Flag referred in Bcc:D rel instruction also remains unaffected by instructions within delay slot.
• Example
ADD
#1,
BC:D
Overflow
ANDCCR #0
...
3.4 CALL:D Instruction
When RP is referred using the instruction within delay slot of CALL:D instruction, the data updated
by CALL:D instruction is read out.
• Example
CALL:D Label
MOV
RP,
...
130
R0
; Branches to Label.
R0
; Not affect any branched address.
; Branches to the address previously specified in RP.
RP
; Not affect any return operation.
R0
; Change of flag
; Branches in accordance with the execution result of instructions above.
; This flag update is not referred in branch instruction above.
; Branches by updating RP.
R0
; Transfers RP based on the execution results of CALL: D above.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents