588
CHAPTER 28 INSTRUCTION SET
Instruction
Mnemonic
Operands
Byte
Clock
Operation
Flag
Group
Note 1
Note 2
Z AC CY
16-bit
ADDW
AX, #word
3
6
—
AX, CY
←
AX + word
x
x
x
operation
SUBW
AX, #word
3
6
—
AX, CY
←
AX – word
x
x
x
CMPW
AX, #word
3
6
—
AX – word
x
x
x
Multiply
MULU
X
2
16
—
AX
←
A x X
divide
DIVUW
C
2
25
—
AX (Quotient), C (Remainder)
←
AX/C
Increment
INC
r
1
2
—
r
←
r + 1
x
x
decrement
saddr
2
4
6
(saddr)
←
(saddr) + 1
x
x
DEC
r
1
2
—
r
←
r – 1
x
x
saddr
2
4
6
(saddr)
←
(saddr) – 1
x
x
INCW
rp
1
4
—
rp
←
rp + 1
DECW
rp
1
4
—
rp
←
rp – 1
Rotate
ROR
A, 1
1
2
—
(CY, A
7
←
A
0
, A
m - 1
←
A
m
) x 1 time
x
ROL
A, 1
1
2
—
(CY, A
0
←
A
7
, A
m + 1
←
A
m
) x 1 time
x
RORC
A, 1
1
2
—
(CY
←
A
0
, A
7
←
CY, A
m - 1
←
A
m
) x 1 time
x
ROLC
A, 1
1
2
—
(CY
←
A
7
, A
0
←
CY, A
m + 1
←
A
m
) x 1 time
x
ROR4
[HL]
2
10
12+n+m A
3 - 0
←
(HL)
3 - 0
, (HL)
7 - 4
←
A
3 - 0
,
(HL)
3 - 0
←
(HL)
7 - 4
ROL4
[HL]
2
10
12+n+m A
3 - 0
←
(HL)
7 - 4
, (HL)
3 - 0
←
A
3 - 0
,
(HL)
7 - 4
←
(HL)
3 - 0
BCD
ADJBA
2
4
—
Decimal Adjust Accumulator after Addition
x
x
x
adjust
ADJBS
2
4
—
Decimal Adjust Accumulator after Subtract
x
x
x
Bit mani-
MOV1
CY, saddr.bit
3
6
7
CY
←
(saddr.bit)
x
pulation
CY, sfr.bit
3
—
7
CY
←
sfr.bit
x
CY, A.bit
2
4
—
CY
←
A.bit
x
CY, PSW.bit
3
—
7
CY
←
PSW.bit
x
CY, [HL].bit
2
6
7 + n
CY
←
(HL).bit
x
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
x
x
[HL].bit, CY
2
6
8+n+m
(HL).bit
←
CY
Notes 1. For instructions that access the internal high-speed RAM area or perform no data access
2. For instructions that access an area other than the internal high-speed RAM area
Remarks 1. One clock in the “Clock” columns is equal to one cycle of the CPU clock (f
CPU
) selected by the processor
clock control register (PCC).
2. The values in the “Clock” column assumes that the internal ROM area contains programs.
3. n indicates wait cycles to be inserted when an external expansion memory area is read from.
4. m indicates wait cycles to be inserted when an external expansion memory area is written to.
Summary of Contents for PD78076
Page 2: ...2 MEMO ...
Page 12: ...12 MEMO ...
Page 48: ...48 MEMO ...
Page 64: ...64 MEMO ...
Page 82: ...82 MEMO ...
Page 100: ...100 MEMO ...
Page 130: ...130 MEMO ...
Page 180: ...180 MEMO ...
Page 222: ...222 MEMO ...
Page 248: ...248 MEMO ...
Page 288: ...288 MEMO ...
Page 308: ...308 MEMO ...
Page 364: ...364 MEMO ...
Page 494: ...494 MEMO ...
Page 526: ...526 MEMO ...
Page 544: ...544 MEMO ...
Page 558: ...558 MEMO ...
Page 580: ...580 MEMO ...
Page 596: ...596 MEMO ...
Page 598: ...598 MEMO ...
Page 626: ...626 MEMO ...