288
CHAPTER 23 INSTRUCTION SET
Preliminary User’s Manual U14581EJ3V0UM00
Clock
Flag
Note 1
Note 2
Z AC CY
ADDW
AX, #word
3
6
–
AX, CY
←
AX + word
× × ×
SUBW
AX, #word
3
6
–
AX, CY
←
AX – word
× × ×
CMPW
AX, #word
3
6
–
AX – word
× × ×
MULU
X
2
16
–
AX
←
A
×
X
DIVUW
C
2
25
–
AX (Quotient), C (Remainder)
←
AX
÷
C
r
1
2
–
r
←
r + 1
× ×
saddr
2
4
6
(saddr)
←
(saddr) + 1
× ×
r
1
2
–
r
←
r – 1
× ×
saddr
2
4
6
(saddr)
←
(saddr) – 1
× ×
INCW
rp
1
4
–
rp
←
rp + 1
DECW
rp
1
4
–
rp
←
rp – 1
ROR
A, 1
1
2
–
(CY, A
7
←
A
0
, A
m – 1
←
A
m
)
×
1 time
×
ROL
A, 1
1
2
–
(CY, A
0
←
A
7
, A
m + 1
←
A
m
)
×
1 time
×
RORC
A, 1
1
2
–
(CY
←
A
0
, A
7
←
CY, A
m – 1
←
A
m
)
×
1 time
×
ROLC
A, 1
1
2
–
(CY
←
A
7
, A
0
←
CY, A
m + 1
←
A
m
)
×
1 time
×
A
3 – 0
←
(HL)
3 – 0
, (HL)
7 – 4
←
A
3 – 0
,
(HL)
3 – 0
←
(HL)
7 – 4
A
3 – 0
←
(HL)
7 – 4
, (HL)
3 – 0
←
A
3 – 0
,
(HL)
7 – 4
←
(HL)
3 – 0
Decimal Adjust Accumulator after
Addition
Decimal Adjust Accumulator after
Subtract
CY, saddr.bit
3
6
7
CY
←
(saddr.bit)
×
CY, sfr.bit
3
–
7
CY
←
sfr.bit
×
CY, A.bit
2
4
–
CY
←
A.bit
×
CY, PSW.bit
3
–
7
CY
←
PSW.bit
×
CY, [HL].bit
2
6
7
CY
←
(HL).bit
×
saddr.bit, CY
3
6
8
(saddr.bit)
←
CY
sfr.bit, CY
3
–
8
sfr.bit
←
CY
A.bit, CY
2
4
–
A.bit
←
CY
PSW.bit, CY
3
–
8
PSW.bit
←
CY
× ×
[HL].bit, CY
2
6
8
(HL).bit
←
CY
Notes 1. When the internal high-speed RAM area is accessed or instruction with no data access
2. When an area except the internal high-speed RAM area is accessed
Remark
One instruction clock cycle is one cycle of the CPU clock (f
CPU
) selected by the processor clock control
register (PCC).
Mnemonic
Operands
Byte
Operation
Instruction
Group
INC
16-bit
operation
Increment/
decrement
DEC
Rotate
ROR4
[HL]
2
10
12
ROL4
[HL]
2
10
12
ADJBA
2
4
–
× × ×
ADJBS
2
4
–
× × ×
BCD
adjust
MOV1
Bit
manipu-
late
Multiply/
divide
Summary of Contents for mPD780851
Page 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...