Appendices
A-6
CJ2 CPU Unit Software User’s Manual
MULTIPLE BIT
RESET
RSTA
@RSTA
531 Output Required
SINGLE BIT
SET
SETB
@SETB
!SETB
!@SETB
532 SETB(532) turns ON the specified bit in the specified
word when the execution condition is ON.
Unlike the SET instruction, SETB(532) can be used to
set a bit in a DM or EM word.
SINGLE
BIT SET
SETB
SINGLE BIT
RESET
RSTB
@RSTB
!RSTB
!@RSTB
533 RSTB(533) turns OFF the specified bit in the specified
word when the execution condition is ON.
Unlike the RSET instruction, RSTB(533) can be used to
reset a bit in a DM or EM word.
Output Required
SINGLE BIT
OUTPUT
OUTB
@OUTB
!OUTB
534 OUTB(534) outputs the result (execution condition) of
the logical processing to the specified bit.
Unlike the OUT instruction, OUTB(534) can be used to
control a bit in a DM or EM word.
Output Required
A-1-3 Sequence Control Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
END END 001 Output Not
required
NO OPERA-
TION
NOP 000 --- This instruction has no function. (No processing is per-
formed for NOP(000).)
Output Not
required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
D: Beginning word
N1: Beginning bit
N2: Number of bits
D
N1
N2
RSTA(531)
N2 bits are
reset to 0
(OFF).
RSTA(531) turns OFF the specified number of consecutive bits.
SETB(532)
D
N
D: Word address
N: Bit number
D
N
RSTB(533)
D: Word address
N: Bit number
D
N
D: Word address
N: Bit number
OUTB(534)
END(001)
Indicates the end of a program.
END(001) completes the execution of a program for
that cycle. No instructions written after END(001)
will be executed. Execution proceeds to the
program with the next task number. When the
program being executed has the highest task
number in the program, END(001) marks the end of
the overall main program.
Program A
Task 1
Task 2
Task n
Program B
Program Z
I/O refreshing
End of the main
program
To the next task
number
To the next task
number