English
Language : 

UPD70320 Datasheet, PDF (30/74 Pages) NEC – V25TM 16/8-BIT SINGLE-CHIP MICROCONTROLLER
Group Mnemonic
Operand
Rotate ROLC
reg,1
mem,1
reg,CL
mem,CL
reg,imm8
mem,imm8
Operation Code
76543210 76543210
1 1 0 1 0 0 0 W 1 1 0 1 0 reg
1 1 0 1 0 0 0 W mod 0 1 0 mem
1 1 0 1 0 0 1 W 1 1 0 1 0 reg
1 1 0 1 0 0 1 W mod 0 1 0 mem
1 1 0 0 0 0 0 W 1 1 0 1 0 reg
1 1 0 0 0 0 0 W mod 0 1 0 mem
Bytes
2
2 to 4
2
2 to 4
3
Operation
Flags
AC CY V P S Z
tmpcy ← CY, CY ← reg MSB
reg ← reg × 2 + tmpcy
reg MSB ≠ CY: V ← 1
reg MSB = CY: V ← 0
tmpcy ← CY, CY ← (mem) MSB
(mem) ← (mem) × 2 + tmpcy
(mem) MSB ≠ CY: V ← 1
(mem) MSB = CY: V ← 0
The following operations are repeated while temp ← CL and temp ≠ 0.
tmpcy ← CY, CY ← reg MSB
reg ← reg × 2 + tmpcy
temp ← temp – 1
The following operations are repeated while temp ← CL and temp ≠ 0.
tmpcy ← CY, CY ← (mem) MSB
(mem) ← (mem) × 2 + tmpcy
temp ← temp – 1
××
××
×U
×U
The following operations are repeated while temp ← imm8
and temp ≠ 0.
tmpcy ← CY, CY ← reg MSB
reg ← reg × 2 + tmpcy
temp ← temp – 1
×U
3 to 5
The following operations are repeated while temp ← imm8
and temp ≠ 0.
tmpcy ← CY, CY ← (mem) MSB
(mem) ← (mem) × 2 + tmpcy
temp ← temp – 1
×U