Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
3-26
(2) Instructions for which subset processing can be used
3.5.2  
Operation processing with standard device registers (Z) (only 
Universal model QCPU)
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 Section 3.8.
For the operation time for each instruction, refer to 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 D
20
+
Z0 Z1 Z
2
Using data registers takes three steps and 
the operation processing time of 28.5 ns. 
(With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)
Using standard device registers instead of 
d
ata registers takes one step and the 
operation processing time of 9.5 ns. 
(With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)