A-121
INSTRUCTION SET REFERENCE
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 Source Mode
Bytes: 32
States: 21
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation: SLL
WRj).b+1
← (WRj).b
(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:
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 Source Mode
Bytes: 32
States: 21
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation: SRA
(Rm).7 ← (Rm).7
(Rm).a ← (Rm).a+1
CY ← (Rm).0
[Encoding] 0 0 1 1 1 1 1 0 t t t t 0 1 0 0
CY AC OV N Z
✓ ——✓✓
[Encoding] 0 0 0 0 1 1 1 0 s s s s 0 0 0 0