CHAPTER 9. INSTRUCTION SET

9.4.4Accumulator Operation Instructions

RORC A

Function: CY A0 An to A1 An , A3 CY (n = 1 to 3)

Rotates the contents of the A register (4-bit accumulator), including the carry flag, to the right one bit at a time.

Before

Execution

RORC A

After

Execution

A

CY 3 2 1 0 0 0 1 0 1

1

 

0

0

1

0

 

NOT A

Function: A A

Takes the one’s complement (inverts each bit) of the A register (4-bit accumulator).

165

Page 176
Image 176
NEC PD75P402, PD75402A user manual Rorc a, 165