![](http://datasheet.mmic.net.cn/380000/-PD784928Y_datasheet_16744934/-PD784928Y_257.png)
257
CHAPTER 6 INSTRUCTION SET
(20) Special instructions: CHKL, CHKLA
Mnemonic
Operands
Operation Code
B1
B2
B3
B4
B5
B6
B7
CHKL
sfr
0 0 0 0
0 1 1 1
1 1 0 0
1 0 0 0
←
Sfr address
→
CHKLA
sfr
0 0 0 0
0 1 1 1
1 1 0 0
1 0 0 1
←
Sfr address
→
Caution The CHKL and CHKLA instructions are not available in the
μ
PD784216, 784216Y, 784218, 784218Y,
784225, 784225Y, 784937 Subseries. Do not execute these instructions. If these instructions are
executed, the following operations will result.
CHKL instruction....... After the pin levels of the output pins are read two times, they are
exclusive-ORed. As a result, if the pins checked with this instruction are
used in the port output mode, the exclusive-OR result is always 0 for all
bits, and the Z flag is set to (1).
CHKLA instruction .... After the pin levels of output pins are read two times, they are exclusive-
ORed. As a result, if the pins checked with this instruction are used in
the port output mode, the exclusive-OR result is always 0 for all bits, and
the Z flag is set to (1) along with that the result is stored in the A register.
(21) String instructions: MOVTBLW, MOVM, MOVBK, XCHM, XCHBK, CMPME, CMPBKE, CMPMNE,
CMPBKNE, CMPMC, CMPBKC, CMPMNC, CMPBKNC
Mnemonic
Operands
Operation Code
B1
B2
B3
B4
B5
B6
B7
MOVTBLW
!addr8, byte
0 0 0 0
--------------------------------------------------------------------------------
1 0 0 1
1 0 1 0
0 0 0 0
←
Low Address
→
←
byte
→
MOVM
[TDE +], A
0 0 0 1
0 1 0 1
0 0 0 0
0 0 0 0
[TDE –], A
0 0 0 1
0 1 0 1
0 0 0 1
0 0 0 0
MOVBK
[TDE +], [WHL +]
0 0 0 1
0 1 0 1
0 0 1 0
0 0 0 0
[TDE –], [WHL –]
0 0 0 1
0 1 0 1
0 0 1 1
0 0 0 0
XCHM
[TDE +], A
0 0 0 1
0 1 0 1
0 0 0 0
0 0 0 1
[TDE –], A
0 0 0 1
0 1 0 1
0 0 0 1
0 0 0 1
XCHBK
[TDE +], [WHL +]
0 0 0 1
0 1 0 1
0 0 1 0
0 0 0 1
[TDE –], [WHL –]
0 0 0 1
0 1 0 1
0 0 1 1
0 0 0 1
CMPME
[TDE +], A
0 0 0 1
0 1 0 1
0 0 0 0
0 1 0 0
[TDE –], A
0 0 0 1
0 1 0 1
0 0 0 1
0 1 0 0
CMPBKE
[TDE +], [WHL +]
0 0 0 1
0 1 0 1
0 0 1 0
0 1 0 0
[TDE –], [WHL –]
0 0 0 1
0 1 0 1
0 0 1 1
0 1 0 0
CMPMNE
[TDE +], A
0 0 0 1
0 1 0 1
0 0 0 0
0 1 0 1
[TDE –], A
0 0 0 1
0 1 0 1
0 0 0 1
0 1 0 1
(Continued on next page)