![TENX TECHNOLOGY TM57PE10 User Manual Download Page 42](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886042.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
42
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
RLF
Rotate Left "f" through Carry
Syntax
RLF f [,d]
Operands
f : 00h ~ 7Fh, d : 0, 1
Operation
C
Register f
Status Affected
C
OP-Code
00 1101 dfff ffff
Description
The contents of register 'f' are rotated one bit to the left through the Carry
Flag. If 'd' is 0, the result is placed in the W register. If 'd' is 1, the result is
stored back in register 'f'.
Cycle
1
Example
RLF REG1, 0
B : REG1 = 1110 0110, C = 0
A : REG1 = 1110 0110
W = 1100 1100, C = 1
RRF
Rotate Right "f" through Carry
Syntax
RRF f [,d]
Operands
f : 00h ~ 7Fh, d : 0, 1
Operation
C
Register f
Status Affected
C
OP-Code
00 1100 dfff ffff
Description
The contents of register 'f' are rotated one bit to the right through the Carry
Flag. If 'd' is 0, the result is placed in the W register. If 'd' is 1, the result is
placed back in register 'f'.
Cycle
1
Example
RRF REG1, 0
B : REG1 = 1110 0110, C = 0
A : REG1 = 1110 0110
W = 0111 0011, C = 0
SLEEP
Go into standby mode, Clock oscillation stops
Syntax
SLEEP
Operands
-
Operation
-
Status Affected
TO, PD
OP-Code
00 0000 0000 0011
Description
Go into SLEEP mode with the oscillator stopped.
Cycle
1
Example
SLEEP
-