/opcodes/rra

Arithmetic // RLCA, RLA, RRCA, RRA

Description

The contents of the Accumulator (Register A) are rotated right 1 bit position through the Carry flag. The previous contents of the Carry flag are copied to bit 7. Bit 0 is the leastsignificant bit.

Example

The Accumulator and the Carry Flag contain the following data: 76534 2 10C 0 111 0 0 00 1 Upon the execution of an RRA instruction, the Accumulator and the Carry flag now contain: 76534 2 10C 1 011 1 0 00 0

Opcodes