Renesas RL78/G1P Hardware User Manual page 732

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Instruction
Mnemonic
Group
Increment/
INC
r
decrement
!addr16
ES:!addr16
saddr
[HL+byte]
ES: [HL+byte]
DEC
r
!addr16
ES:!addr16
saddr
[HL+byte]
ES: [HL+byte]
INCW
rp
!addr16
ES:!addr16
saddrp
[HL+byte]
ES: [HL+byte]
DECW
rp
!addr16
ES:!addr16
saddrp
[HL+byte]
ES: [HL+byte]
Shift
SHR
A, cnt
SHRW
AX, cnt
SHL
A, cnt
B, cnt
C, cnt
SHLW
AX, cnt
BC, cnt
SAR
A, cnt
SARW
AX, cnt
Notes 1.
Number of CPU clocks (f
when no data is accessed.
2.
Number of CPU clocks (f
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.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Table 26-5. Operation List (13/18)
Operands
Bytes
Note 1 Note 2
1
3
4
2
3
4
1
3
4
2
3
4
1
3
4
2
3
4
1
3
4
2
3
4
2
2
2
2
2
2
2
2
2
) when the internal RAM area, SFR area, or extended SFR area is accessed, or
CLK
) when the program memory area is accessed.
CLK
Clocks
r  r+1
1
(addr16)  (addr16)+1
2
(ES, addr16)  (ES, addr16)+1
3
(saddr)  (saddr)+1
2
(HL+byte)  (HL+byte)+1
2
((ES:HL)+byte)  ((ES:HL)+byte)+1
3
r  r – 1
1
(addr16)  (addr16) – 1
2
(ES, addr16)  (ES, addr16) – 1
3
(saddr)  (saddr) – 1
2
(HL+byte)  (HL+byte) – 1
2
((ES:HL)+byte)  ((ES:HL)+byte) – 1
3
rp  rp+1
1
(addr16)  (addr16)+1
2
(ES, addr16)  (ES, addr16)+1
3
(saddrp)  (saddrp)+1
2
(HL+byte)  (HL+byte)+1
2
((ES:HL)+byte)  ((ES:HL)+byte)+1
3
rp  rp – 1
1
(addr16)  (addr16) – 1
2
(ES, addr16)  (ES, addr16) – 1
3
(saddrp)  (saddrp) – 1
2
(HL+byte)  (HL+byte) – 1
2
((ES:HL)+byte)  ((ES:HL)+byte) – 1
3
(CY  A
1
, A
0
m-1
(CY  AX
1
, AX
0
(CY  A
1
, A
7
m
(CY  B
1
, B
7
m
(CY  C
1
, C
7
m
(CY  AX
, AX
1
15
(CY  BC
1
, BC
15
(CY  A
1
, A
0
m-1
(CY  AX
1
, AX
0
CHAPTER 26 INSTRUCTION SET
Operation
 A
 0) ×cnt
A
m ,
7
 AX
 0) ×cnt
, AX
m-1
m
15
 A
 0) ×cnt
, A
m-1
0
 B
 0) ×cnt
, B
m-1
0
 C
 0) ×cnt
, C
m-1
0
 AX
 0) ×cnt
, AX
m
m-1
0
 BC
 0) ×cnt
, BC
m
m-1
0
 A
 A
, A
) ×cnt
m
7
7
 AX
 AX
, AX
) ×cnt
m-1
m
15
15
Flag
Z
AC CY
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
713

Advertisement

Table of Contents
loading

Table of Contents