Atmel C51 Manual Página 59

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 116
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 58
The 8051 Instruction Set
1-57 Atmel 8051 Microcontrollers Hardware Manual
4316E–8051–01/07
1.14.43 RR A
1.14.44 RRC A
Function: Rotate Accumulator Right
Description: The eight bits in the Accumulator are rotated one bit to the right. Bit 0 is rotated into the bit 7 position. No flags
are affected.
Example: The Accumulator holds the value 0C5H (11000101B). The following instruction,
RR A
leaves the Accumulator holding the value 0E2H (11100010B) with the carry unaffected.
Bytes: 1
Cycles: 1
Encoding: 0 0 0 0 0 0 1 1
Operation: RR
(A
n
) (A
n
+ 1) n = 0 - 6
(A
7
) (A
0
)
Function: Rotate Accumulator Right through Carry flag
Description: The eight bits in the Accumulator and the carry flag are together rotated one bit to the right. Bit 0 moves into the
carry flag; the original value of the carry flag moves into the bit 7 position. No other flags are affected.
Example: The Accumulator holds the value 0C5H (11000101B), the carry is zero. The following instruction,
RRC A
leaves the Accumulator holding the value 62 (01100010B) with the carry set.
Bytes: 1
Cycles: 1
Encoding: 0 0 0 1 0 0 1 1
Operation: RRC
(A
n
) (A
n
+ 1) n = 0 - 6
(A
7
) (C)
(C) (A
0
)
Vista de página 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 115 116

Comentários a estes Manuais

Sem comentários