103
2
3
4
5
6
7
8
3.5
R
educing In
str
uction Pro
cessing T
ime
3.5.2
O
per
atio
n pr
ocessing
with standar
d device
registers
(Z
) (Universal model
QCPU and
L
C
PU
on
ly
)
(2) Instructions for which subset processing can be used
3.5.2
Operation processing with standard device registers (Z) (Universal
model QCPU and LCPU only)
Operation processing time can be reduced with standard device registers (Z).
The following shows an example program with standard device registers.
Operation processing time is reduced with the instructions that the subset processing is possible.
For the number of steps, refer to Page 110, Section 3.8.
For the operation time for each instruction, refer to Page 706, Appendix 1.
Because standard device registers are the same devices as index registers, do not use device numbers of the standard
device registers for the index registers.
Types of Instructions
Instruction Symbols
Contact instructions
LD,LDI,AND,ANI,OR,ORI,LDP,LDF,ANDP,ANDF,ORP,ORF,LDPI,ANDPI,ANDFI,ORPI,ORFI
Output instructions
OUT,SET,RST
Comparison operation instruction
•
,
,
,
,
,
,D
,D
,D
,D
,D
,D
Arithmetic operation
• +,-,*,/,INC,DEC,D+,D-,D*,D/,DINC,DDEC
• B+,B-,B*,B/, E+,E-,E*,E/
Data conversion instructions
• BCD, BIN, DBCD, DBIN, FLT, DFLT, INT, DINT
Data transfer instruction
• MOV, DMOV, CML, DCML, XCH, DXCH
• FMOV, BMOV, EMOV
Program branch instruction
• CJ, SCJ, JMP
Logic operations
• WAND, DAND, WOR, DOR, WXOR, DXOR, WXNR, DXNR
Rotation instruction
• RCL, DRCL, RCR, DRCR, ROL, DROL, ROR, DROR
Shift instruction
• SFL, DSFL, SFR, DSFR
Data processing instructions
• SUM, SEG
Structure creation instructions
• FOR, CALL
+
D0 D10 D20
+
Z0 Z1 Z2
Usin
g
d
ata re
g
isters takes three steps an
d
the
o
perati
o
n pr
o
cessin
g
time
o
f
2
8.5 ns.
(W
ith the
Q
4/
Q0
6/
Q10
/
Q13
/
Q20
/
Q2
6U
D(
E
)
H
CP
U
o
r
Q
5
0
/
Q100
U
D
EH
CP
U
)
Usin
g
stan
d
ar
d
d
e
v
ice re
g
isters instea
d
o
f
d
ata re
g
isters takes
o
ne step an
d
the
o
perati
o
n pr
o
cessin
g
time
o
f
9
.5 ns.
(W
ith the
Q
4/
Q0
6/
Q10
/
Q13
/
Q20
/
Q2
6U
D(
E
)
H
CP
U
o
r
Q
5
0
/
Q100
U
D
EH
CP
U
)