Intel 8XC251SA User Manual page 373

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
SLL
(Rm).a+1 ← (Rm).a
(Rm).0 ← 0
CY ← (Rm).7
SLL WRj
Binary Mode
Bytes:
States:
[Encoding]
0 0 1 1
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
SLL
WRj).b+1
(WRj).0 ← 0
CY ← (WRj).15
SRA <src>
Function:
Shift arithmetic right by 1 bit
Description:
Shifts the specified variable to the arithmetic right by 1 bit. The MSB is unchanged. The bit
shifted out (LSB) is stored in the CY bit.
Flags:
CY
Example:
Register 1 contains 0C5H (11000101B). After executing the instruction
SRA register 1
Register 1 contains 0E2H (11100010B) and CY = 1.
Variations
SRA Rm
Binary Mode
Bytes:
States:
[Encoding]
0 0 0 0
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
SRA
(Rm).7 ← (Rm).7
(Rm).a ← (Rm).a+1
CY ← (Rm).0
Source Mode
3
2
2
1
1 1 1 0
(WRj).b
AC
Source Mode
3
2
2
1
1 1 1 0
INSTRUCTION SET REFERENCE
t t t t
0 1 0 0
OV
N
s s s s
0 0 0 0
Z
A-121

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents