Rra rotate right (accumulator) – Zilog Z80380 User Manual

Page 187

Advertising
background image

5-153

Z380

U

SER

'

S

M

ANUAL

Z

ILOG

DC-8297-03

RRA

ROTATE RIGHT (ACCUMULATOR)

RRA

Operation:

tmp

A

A(7)

C

C

A(0)

A(n)

tmp(n+1) for n = 0 to 6

The contents of the accumulator are concatenated with the Carry flag and together they are
rotated right one bit position. Bit 0 of the accumulator is moved to the Carry flag and the Carry
flag is moved to bit 7 of the accumulator.

Flags:

S:

Unaffected

Z:

Unaffected

H:

Cleared

P:

Unaffected

N:

Cleared

C:

Set if the bit rotated from bit 0 was a 1; cleared otherwise

Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

RRA

00011111

2

Advertising