RL78/G1P
CHAPTER 26 INSTRUCTION SET
R01UH0895EJ0100 Rev.1.00
708
Nov 29, 2019
Table 26-5. Operation List (8/18)
Notes 1.
Number of CPU clocks (f
CLK
) when the internal RAM area, SFR area, or extended SFR area is accessed, or
when no data is accessed.
2.
Number of CPU clocks (f
CLK
) when the program memory area is accessed.
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.
Instruction
Group
Mnemonic Operands Bytes Clocks
Operation
Flag
Note 1 Note 2
Z AC CY
8-bit
operation
SUBC A,
#byte
2
1
A,
CY
A – byte – CY
× × ×
saddr, #byte
3
2
(saddr),
CY
(saddr) – byte – CY
× × ×
A, r
Note 3
2
1
A,
CY
A – r – CY
× × ×
r, A
2
1
r,
CY
r – A – CY
× × ×
A, !addr16
3
1
4
A, CY
A – (addr16) – CY
× × ×
A, ES:!addr16
4
2
5
A, CY
A – (ES, addr16) – CY
× × ×
A, saddr
2
1
A,
CY
A – (saddr) – CY
× × ×
A, [HL]
1
1
4
A, CY
A – (HL) – CY
× × ×
A, ES:[HL]
2
2
5
A,CY
A – (ES, HL) – CY
× × ×
A, [HL+byte]
2
1
4
A, CY
A – (HL+byte) – CY
× × ×
A, ES:[HL+byte]
3
2
5
A,CY
A – ((ES, HL)+byte) – CY
× × ×
A, [HL+B]
2
1
4
A, CY
A – (HL+B) – CY
× × ×
A, ES:[HL+B]
3
2
5
A,CY
A – ((ES, HL)+B) – CY
× × ×
A, [HL+C]
2
1
4
A, CY
A – (HL+C) – CY
× × ×
A, ES:[HL+C]
3
2
5
A, CY
A – ((ES:HL)+C) – CY
× × ×
AND A,
#byte
2 1
A
A
byte
×
saddr, #byte
3
2
(saddr)
(saddr)
byte
×
A, r
Note 3
2
1
A
A
r
×
r, A
2
1
R
r
A
×
A, !addr16
3
1
4
A
A
(addr16)
×
A, ES:!addr16
4
2
5
A
A
(ES:addr16)
×
A, saddr
2
1
A
A
(saddr)
×
A, [HL]
1
1
4
A
A
(HL)
×
A, ES:[HL]
2
2
5
A
A
(ES:HL)
×
A, [HL+byte]
2
1
4
A
A
(HL+byte)
×
A, ES:[HL+byte]
3
2
5
A
A
((ES:HL)+byte)
×
A, [HL+B]
2
1
4
A
A
(HL+B)
×
A, ES:[HL+B]
3
2
5
A
A
((ES:HL)+B)
×
A, [HL+C]
2
1
4
A
A
(HL+C)
×
A, ES:[HL+C]
3
2
5
A
A
((ES:HL)+C)
×