
Advance Information
UM-TM57PA20&40_E
8 Bit Microcontroller
36
tenx technology, inc.
Preliminary
Rev 1.3, 2009/10/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
-