549
CHAPTER 28 INSTRUCTION OPERATION
User’s Manual U12697EJ3V0UM
Mnemonic
Operand
Bytes
Operation
Flag
S
Z
AC P/V CY
BFSET
saddr.bit, $addr20
4/5
{PC
←
PC + 4
Note 2
+ jdisp8, (saddr.bit)
←
1}
if (saddr.bit = 0)
sfr.bit, $addr20
4
{PC
←
PC + 4 + jdisp8, sfr.bit
←
1} if sfr. bit = 0
X.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, X.bit
←
1} if X.bit = 0
A.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, A.bit
←
1} if A.bit = 0
PSWL.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, PSW
L
.bit
←
1}
×
×
×
×
×
if PSW
L
.bit = 0
PSWH.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, PSW
H
.bit
←
1}
if PSW
H
.bit = 0
!addr16.bit, $addr20
6
{PC
←
PC + 3 + jdisp8, !addr16.bit
←
1}
if !addr16.bit = 0
!!addr24.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, !!addr24.bit
←
1}
if !!addr24.bit = 0
mem2.bit, $addr20
3
{PC
←
PC + 3 + jdisp8, mem2.bit
←
1}
if mem2.bit = 0
DBNZ
B, $addr20
2
B
←
B – 1, PC
←
PC + 2 + jdisp8 if B
≠
0
C. $addr20
2
C
←
C – 1, PC
←
PC + 2 + jdisp8 if C
≠
0
saddr, $addr20
3/4
(saddr)
←
(saddr) – 1,
PC
←
PC + 3
Note 1
+ jdisp8 if (saddr)
≠
0
Notes 1.
This is used when the number of bytes is three. When four, it becomes PC
←
PC + 4 + jdisp8.
2.
This is used when the number of bytes is four. When five, it becomes PC
←
PC + 5 + jdisp8.
(19) CPU control instructions: MOV, LOCATION, SEL, SWRS, NOP, EI, DI
Mnemonic
Operand
Bytes
Operation
Flag
S
Z
AC P/V CY
MOV
STBC, #byte
4
STBC
←
byte
WDM, #byte
4
WDM
←
byte
LOCATION
locaddr
4
Specification of the high-order word of the location
address of the SFR and internal data area
SEL
RBn
2
RSS
←
0, RBS2 – 0
←
n
RBn, ALT
2
RSS
←
1, RBS2 – 0
←
n
SWRS
2
RSS
←
RSS
NOP
1
No operation
EI
1
IE
←
1 (Enable interrupt)
DI
1
IE
←
0 (Disable interrupt)