Intel 8XC251SQ Microscope & Magnifier User Manual


 
A-117
INSTRUCTION SET REFERENCE
Example: The accumulator contains 0C5H (11000101B) and the CY flag is clear. After executing the
instruction
RLC A
the accumulator contains 8AH (10001010B) and the CY flag is set.
Binary Mode Source Mode
Bytes: 11
States: 11
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: RLC
(A).a+1 (A).a
(A).0 (CY)
(CY) (A) .7
RR A
Function: Rotate accumulator right
Description: Rotates the 8 or 16 bits in the accumulator one bit to the right. Bit 0 is moved into the bit 7 or
15 position.
Flags:
Example: The accumulator contains 0C5H (11000101B). After executing the instruction
RR A
the accumulator contains 0E2H (11100010B) and the CY flag is unaffected.
Binary Mode Source Mode
Bytes: 11
States: 11
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: RR
(A).a (A).a+1
(A).7 (A) .0
[Encoding] 0 0 1 1 0 0 1 1
CY AC OV N Z
———✓✓
[Encoding] 0 0 0 0 0 0 1 1