Intel Embedded Microcontroller SRA WRj Binary Mode Source Mode Bytes States Encoding, SRL src

Models: Embedded Microcontroller 8XC251SP 8XC251SA 8XC251SQ 8XC251SB

1 458
Download 458 pages 25.38 Kb
Page 374
Image 374

8XC251SA, SB, SP, SQ USER’S MANUAL

SRA WRj

Binary Mode Source Mode

Bytes:

States:

[Encoding]

32

21

0 0 0 0

1 1 1 0

 

 

t t t t

0 1 0 0

Hex Code in: Binary Mode = [A5][Encoding]

Source Mode = [Encoding]

Operation: SRA

(WRj).15 (WRj).15

(WRj).b (WRj).b+1 CY (WRj).0

SRL <src>

Function: Shift logical right by 1 bit

Description: SRL shifts the specified variable to the right by 1 bit, replacing the MSB with a zero. The bit shifted out (LSB) is stored in the CY bit.

Flags:

CY

AC

OV

N

Z

 

 

 

 

 

 

 

 

 

 

Example: Register 1 contains 0C5H (11000101B). After executing the instruction

SRL register 1

Register 1 contains 62H (01100010B) and CY = 1.

Variations

SRL Rm

Binary Mode Source Mode

Bytes:

States:

[Encoding]

Hex Code in:

Operation:

32

21

0 0 0 1

1 1 1 0

 

 

Binary Mode = [A5][Encoding] Source Mode = [Encoding]

SRL

(Rm).7 0

(Rm).a (Rm).a+1 CY (Rm).0

s s s s

0 0 0 0

A-122

Page 374
Image 374
Intel Embedded Microcontroller, 8XC251SA, 8XC251SP, 8XC251SQ SRA WRj Binary Mode Source Mode Bytes States Encoding, SRL src