Srax – Zilog Z16F2810 User Manual
Page 178
![background image](https://www.manualsdir.com/files/771158/content/doc178.png)
SRAX Instruction
UM018809-0611
162
ZNEO
®
CPU Core
User Manual
SRAX
Definition
Shift Right Arithmetic, Extended
Syntax
SRAX dst, src
Operation
Description
This instruction performs an arithmetic shift to the right on the destination operand by the num-
ber of bit positions (0–31) specified in bits [4:0] of the source operand. On each bit shift iteration,
Bit 0 replaces the Carry (
C
) flag. The value of Bit 31 (the Sign bit) does not change, but its value
shifts into Bit 30 on each iteration.
The source register is cleared, and bits shifted out of the destination are shifted into the source
register.
This instruction is generated by using the Extend prefix, 0007H, with the SRA opcode.
C
src
dst
31
0
30
src
31
0