Intel mcs-48 manual Rrnc RR Anew ACC Contents are, Rrtc RRC a Carry is SET and ACC, Contains

Models: mcs-48

1 478
Download 478 pages 26.88 Kb
Page 104
Image 104

INSTRUCTION SET

RR A Rotate Right Without Carry

10111\011 1 1

The contents of the accumulator are rotated right one bit. Bit 0 is rotated into .the bit 7 position

(An)-- (An +1)

n=0-6

(A7)-- (AO)

Example: Assume accumulator contains 10110001.

RRNC: RR A;NEW ACC CONTENTS ARE 11011000

RRC A Rotate Right Through Carry

10110\01111

The contents of the accumulator are rotated right one bit. Bit 0 replaces the carry bit; the carry bit is rotated into the bit 7 position.

(An)-- (An+1)n=0-6

(A7)-- (C)

(C)--(Ao)

Example: Assume carry is not set and accumulator contains 10110001.

RRTC: RRC A

;CARRY IS SET AND ACC

 

;CONTAINS 01011000

SEL ANO Select Analog Input Zero (8022 Only)

11001101011

SEL AN1 Select Analog Input One (8022 Only)

11000101011

One of the two analog inputs to the AID converter is selected. The conversion process is started. Restarting a sequence deletes the sequence in progress.

4-31

Page 104
Image 104
Intel mcs-48 manual Rrnc RR Anew ACC Contents are, Example Assume carry is not set and accumulator contains, Contains