RL78/G1P
CHAPTER 26 INSTRUCTION SET
R01UH0895EJ0100 Rev.1.00
713
Nov 29, 2019
Table 26-5. Operation List (13/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.
Remarks 1.
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.
2.
cnt indicates the bit shift count.
Instruction
Group
Mnemonic Operands Bytes Clocks
Operation
Flag
Note 1 Note 2
Z AC CY
Increment/
decrement
INC r
1 1
r
r+1
× ×
!addr16 3
2
(addr16)
(1
× ×
ES:!addr16 4
3
(ES,
addr16)
(ES, 1
× ×
saddr 2
2
(saddr)
(saddr)+1
× ×
[HL+byte]
3 2
(HL+byte)
(HL+byte)+1
× ×
ES: [HL+byte]
4 3
((ES:HL)+byte)
((ES:HL)+byte)+1
× ×
DEC r
1 1
r
r – 1
× ×
!addr16 3
2
(addr16)
(addr16) – 1
× ×
ES:!addr16 4
3
(ES,
addr16)
(ES, addr16) – 1
× ×
saddr 2
2
(saddr)
(saddr) – 1
× ×
[HL+byte]
3 2
(HL+byte)
(HL+byte) – 1
× ×
ES: [HL+byte]
4 3
((ES:HL)+byte)
((ES:HL)+byte) – 1
× ×
INCW rp
1
1
rp
rp+1
!addr16 3
2
(addr16)
(1
ES:!addr16 4
3
(ES,
addr16)
(ES, 1
saddrp 2
2
(saddrp)
(1
[HL+byte]
3 2
(HL+byte)
(HL+byte)+1
ES: [HL+byte]
4 3
((ES:HL)+byte)
((ES:HL)+byte)+1
DECW rp
1
1
rp
rp – 1
!addr16 3
2
(addr16)
(addr16) – 1
ES:!addr16 4
3
(ES,
addr16)
(ES, addr16) – 1
saddrp 2
2
(saddrp)
(saddrp) – 1
[HL+byte]
3 2
(HL+byte)
(HL+byte) – 1
ES: [HL+byte]
4 3
((ES:HL)+byte)
((ES:HL)+byte) – 1
Shift SHR A,
cnt
2 1
(CY
A
0
, A
m-1
A
m,
A
7
0) ×cnt
×
SHRW AX,
cnt
2
1
(CY
AX
0
, AX
m-1
AX
m
, AX
15
0) ×cnt
×
SHL A,
cnt
2 1
(CY
A
7
, A
m
A
m-1
, A
0
0) ×cnt
×
B, cnt
2
1
(CY
B
7
, B
m
B
m-1
, B
0
0) ×cnt
×
C, cnt
2
1
(CY
C
7
, C
m
C
m-1
, C
0
0) ×cnt
×
SHLW AX,
cnt
2
1
(CY
AX
15
, AX
m
AX
m-1
, AX
0
0) ×cnt
×
BC, cnt
2
1
(CY
BC
15
, BC
m
BC
m-1
, BC
0
0) ×cnt
×
SAR A,
cnt
2 1
(CY
A
0
, A
m-1
A
m
, A
7
A
7
) ×cnt
×
SARW AX,
cnt
2
1
(CY
AX
0
, AX
m-1
AX
m
, AX
15
AX
15
) ×cnt
×