NEC MuPD78F0132H User Manual page 466

8-bit single-chip microcontrollers, 78k0/ke1plus
Table of Contents

Advertisement

Instruction
Mnemonic
Group
16-bit
ADDW
AX, #word
operation
SUBW
AX, #word
CMPW
AX, #word
Multiply/
MULU
X
divide
DIVUW
C
Increment/
INC
r
decrement
saddr
DEC
r
saddr
INCW
rp
DECW
rp
Rotate
ROR
A, 1
ROL
A, 1
RORC
A, 1
ROLC
A, 1
ROR4
[HL]
ROL4
[HL]
BCD
ADJBA
adjustment
ADJBS
Bit
MOV1
CY, saddr.bit
manipulate
CY, sfr.bit
CY, A.bit
CY, PSW.bit
CY, [HL].bit
saddr.bit, CY
sfr.bit, CY
A.bit, CY
PSW.bit, CY
[HL].bit, CY
Notes 1.
When the internal high-speed RAM area is accessed or for an instruction with no data access
2.
When an area except the internal high-speed RAM area is accessed
Remarks 1. One instruction clock cycle is one cycle of the CPU clock (f
control register (PCC).
2. This clock cycle applies to the internal ROM program.
466
CHAPTER 28 INSTRUCTION SET
Clocks
Operands
Bytes
Note 1
3
6
3
6
3
6
2
16
2
25
1
2
2
4
1
2
2
4
1
4
1
4
1
2
1
2
1
2
1
2
2
10
2
10
2
4
2
4
3
6
3
2
4
3
2
6
3
6
3
2
4
3
2
6
User's Manual U16899EJ2V0UD
Operation
Note 2
AX, CY ← AX + word
AX, CY ← AX − word
AX − word
AX ← A × X
AX (Quotient), C (Remainder) ← AX ÷ C
r ← r + 1
(saddr) ← (saddr) + 1
6
r ← r − 1
(saddr) ← (saddr) − 1
6
rp ← rp + 1
rp ← rp − 1
← A
← A
(CY, A
, A
m − 1
7
0
← A
← A
(CY, A
, A
0
7
m + 1
(CY ← A
← CY, A
, A
0
7
(CY ← A
← CY, A
, A
7
0
← (HL)
12
A
, (HL)
3 − 0
3 − 0
← (HL)
(HL)
3 − 0
7 − 4
← (HL)
12
A
, (HL)
3 − 0
7 − 4
← (HL)
(HL)
7 − 4
3 − 0
Decimal Adjust Accumulator after Addition
Decimal Adjust Accumulator after Subtract
CY ← (saddr.bit)
7
CY ← sfr.bit
7
CY ← A.bit
CY ← PSW.bit
7
CY ← (HL).bit
7
(saddr.bit) ← CY
8
sfr.bit ← CY
8
A.bit ← CY
PSW.bit ← CY
8
(HL).bit ← CY
8
) selected by the processor clock
CPU
Flag
Z AC CY
×
×
×
×
×
×
×
×
×
×
×
×
×
×
) × 1 time
m
) × 1 time
m
← A
) × 1 time
m − 1
m
← A
) × 1 time
m + 1
m
← A
,
7 − 4
3 − 0
← A
,
3 − 0
3 − 0
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×

Advertisement

Table of Contents
loading

Table of Contents