Renesas RL78 Series User Manual page 826

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
Instruction
Mnemonic
Group
8-bit
CMP
A, #byte
operation
!addr16, #byte
ES:!addr16, #byte
saddr, #byte
A, r
r, A
A, !addr16
A, ES:!addr16
A, saddr
A, [HL]
A, ES:[HL]
A, [HL+byte]
A, ES:[HL+byte]
A, [HL+B]
A, ES:[HL+B]
A, [HL+C]
A, ES:[HL+C]
CMP0
A
X
B
C
!addr16
ES:!addr16
saddr
CMPS
X, [HL+byte]
X, ES:[HL+byte]
Notes 1. Number of CPU clocks (f
when no data is accessed.
2. Number of CPU clocks (f
accessed by an 8-bit instruction.
3. Except r = A
Remark
Number of clock is when program exists in the internal ROM (flash memory) area. If fetching the instruction
from the internal RAM area, the number becomes double number plus 3 clocks at a maximum.
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Table 29-5. Operation List (10/17)
Operands
Bytes
Note 1
2
4
5
3
Note3
2
2
3
4
2
1
2
2
3
2
3
2
3
1
1
1
1
3
4
2
3
4
) when the internal RAM area, SFR area, or extended SFR area is accessed, or
CLK
) when the code flash memory is accessed, or when the data flash memory is
CLK
Clocks
Note 2
1
A – byte
1
4
(addr16) – byte
2
5
(ES:addr16) – byte
1
(saddr) – byte
1
A – r
1
r – A
1
4
A – (addr16)
2
5
A – (ES:addr16)
1
A – (saddr)
1
4
A – (HL)
2
5
A – (ES:HL)
1
4
A – (HL+byte)
2
5
A – ((ES:HL)+byte)
1
4
A – (HL+B)
2
5
A – ((ES:HL)+B)
1
4
A – (HL+C)
2
5
A – ((ES:HL)+C)
1
A – 00H
1
X – 00H
1
B – 00H
1
C – 00H
1
4
(addr16) – 00H
2
5
(ES:addr16) – 00H
1
(saddr) – 00H
1
4
X – (HL+byte)
2
5
X – ((ES:HL)+byte)
CHAPTER 29 INSTRUCTION SET
Operation
Flag
Z
AC CY
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
0
0
×
0
0
×
0
0
×
0
0
×
0
0
×
0
0
×
0
0
×
×
×
×
×
×
805

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents