Instruction Set and Assembly Language Programming 191
RRC Rotate accumulator right through carry (one instruction)
Description: Bit 0 of accumulator is shifted to carry ag. Old content of carry ag shifted to bit 7 of
accumulator. Other bits of accumulator shifted right one bit. Only carry ag is affected.
Syntax: RRC
Nibbles: 2 Cycles: 2 Flags: C
3210
1001
3210
1100
RL Rotate accumulator circular left (one instruction)
Description: All bits of accumulator shifted one bit left. Old bit 7 becomes bit 0. No ags are affected.
Syntax: RL
Nibbles: 2 Cycles: 2 Flags: none
3210
1001
3210
1101
RR Rotate accumulator circular right (one instruction)
Description: All bits of accumulator shifted one bit right. Old bit 0 becomes bit 7. No ags are affected.
Syntax: RR
Nibbles: 2 Cycles: 2 Flags: none
3210
1001
3210
1110
LAR Logically AND accumulator with register (eight instructions)
Description: Content of indicated register is logically ANDed with content of accumulator. Result in
accumulator. Both carry and zero ags are affected.
Syntax: LAR W
Nibbles: 2 Cycles: 2 Flags: C, Z
3210
0111
3210
0rr r
LAI Logically AND immediate data with accumulator (one instruction)
Description: Content of accumulator is logically ANDed with immediate data. Result in accumulator.
Both carry and zero ags are affected.
Syntax: LAI data(4)
Nibbles: 3 Cycles: 3 Flags: C, Z
3210
1110
3210
1110
3210
dddd
LOR Logically OR accumulator with register (eight instructions)
Description: Content of indicated register is logically ORed with content of accumulator. Result in
accumulator. Both carry and zero ags are affected.
Syntax: LOR X
M06_GHOS1557_01_SE_C06.indd 191M06_GHOS1557_01_SE_C06.indd 191 4/29/11 5:10 PM4/29/11 5:10 PM