7 Applied Instructions (Program Flow)
103
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
7. Applied Instructions (Program Flow)
This chapter introduces the instructions mainly related to control flow of sequence programs such as
conditional program execution and priority processing.
Instruction name Function Reference
CJ
Conditional Jump Section 7.1
CJP
CALL
Call Subroutine Section 7.2
CALLP
SRET Subroutine Return Section 7.3
IRET Interrupt Return Section 7.4
DI Disable Interrupt Section 7.5
EI Enable Interrupt Section 7.6
FEND Main Routine Program End Section 7.7
WDT Watchdog Timer Refresh Section 7.8
FOR Start a FOR/NEXT Loop Section 7.9
NEXT End a FOR/NEXT Loop Section 7.10