66
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
M8C Instruction Set
4.29
Rotate Left through Carry
RLC
Shifts all bits of the instruction’s argument one bit to the left. Bit 0 is loaded with the Carry Flag. The
most significant bit of the specified location is loaded into the Carry Flag.
.
Instructions
Operation
Opcode
Cycles Bytes
Mnemonic
Argument
RLC
A
0x6A
4
1
RLC
[expr]
0x6B
7
2
RLC
[X+expr]
0x6C
8
2
Conditional
Flags:
CF
ZF
Set if the MSB of the specified operand was set before the shift, cleared
otherwise.
Set if the result is zero; cleared otherwise.
Example:
and
F, 0xFB
;clear carry flag
mov
A, 0x7F
;initialize A with 127
rlc
A
;A=0xFE, CF=0, ZF=0
7
4
5
2
3
0
1
6
CF
A
CF
A:7
A:7
A:6
A:6
A:5
A:5
A4
A:4
A:3
A:3
A:2
A:2
A:1
A:1
A:0
A:0
CF
ram k
CF
ram k
:7
ram k
:7
ram k
:6
ram k
:6
ram k
:5
ram k
:5
ram k
:4
ram k
:4
ram k
:3
ram k
:3
ram k
:2
ram k
:2
ram k
:1
ram k
:1
ram k
:0
ram k 0
CF
ram X k
+
CF
ram X k
+
:7
ram X k
+
:7
ram X k
+
:6
ram X k
+
:6
ram X k
+
:5
ram X k
+
:5
ram X k
+
:4
ram X k
+
:4
ram X k
+
:3
ram X k
+
:3
ram X k
+
:2
ram X k
+
:2
ram X k
+
:1
ram X k
+
:1
ram X k
+
:0
ram X k
+
:0
CF
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...