8XC251SA, SB, SP, SQ USER’S MANUAL
A-118
RRC A
Function:
Rotate accumulator right through carry flag
Description:
Rotates the eight bits in the accumulator and the CY flag one bit to the right. Bit 0 moves into
the CY flag position; the original value of the CY flag moves into the bit 7 position.
Flags:
Example:
The accumulator contains 0C5H (11000101B) and the CY flag is clear. After executing the
instruction
RRC A
the accumulator contains 62 (01100010B) and the CY flag is set.
Binary Mode
Source Mode
Bytes:
1
1
States:
1
1
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
RRC
(A).a
←
(A).a+1
(A).7
←
(CY)
(CY)
←
(A).0
SETB <bit>
Function:
Set bit
Description:
Sets the specified bit to one. SETB can operate on the CY flag or any directly addressable
bit.
Flags:
No flags are affected except the CY flag for instruction with CY as the operand
.
Example:
The CY flag is clear and output Port 1 contains 34H (00110100B). After executing the
instruction sequence
SETB CY
SETB P1.0
the CY flag is set and output Port 1 contains 35H (00110101B).
CY
AC
OV
N
Z
✓
—
—
✓
✓
[Encoding]
0 0 0 1
0 0 1 1
CY
AC
OV
N
Z
✓
—
—
—
—
Содержание 8XC251SA
Страница 2: ......
Страница 3: ...May 1996 8XC251SA 8XC251SB 8XC251SP 8XC251SQ Embedded Microcontroller User s Manual...
Страница 18: ......
Страница 19: ...1 Guide to This Manual...
Страница 20: ......
Страница 30: ......
Страница 31: ...2 Architectural Overview...
Страница 32: ......
Страница 41: ...3 Address Spaces...
Страница 42: ......
Страница 63: ...4 Device Configuration...
Страница 64: ......
Страница 81: ...5 Programming...
Страница 82: ......
Страница 102: ......
Страница 103: ...6 Interrupt System...
Страница 104: ......
Страница 120: ......
Страница 121: ...7 Input Output Ports...
Страница 122: ......
Страница 132: ......
Страница 133: ...8 Timer Counters and Watchdog Timer...
Страница 134: ......
Страница 153: ...9 Programmable Counter Array...
Страница 154: ......
Страница 170: ......
Страница 171: ...10 Serial I O Port...
Страница 172: ......
Страница 187: ...11 Minimum Hardware Setup...
Страница 188: ......
Страница 197: ...12 Special Operating Modes...
Страница 198: ......
Страница 206: ......
Страница 207: ...13 External Memory Interface...
Страница 208: ......
Страница 239: ...14 Programming and Verifying Nonvolatile Memory...
Страница 240: ......
Страница 250: ......
Страница 251: ...A Instruction Set Reference...
Страница 252: ......
Страница 390: ......
Страница 391: ...B Signal Descriptions...
Страница 392: ......
Страница 400: ......
Страница 401: ...C Registers...
Страница 402: ......
Страница 436: ......
Страница 437: ...Glossary...
Страница 438: ......
Страница 446: ......
Страница 447: ...Index...
Страница 448: ......
Страница 458: ......