
UM018809-0611 SRAX Instruction
ZNEO
®
CPU Core
User Manual
163
Flags
Flags are set based on the 32-bit destination register value.
Syntax and Opcodes
Example
Before:
R7=8F37_B2D3H (1000_1111_0011_0111_1011_0010_1101_0011B), R8=4
SRAX R7, R8 ;Object code: 0007 B487
After:
R7=F8F3_7B2DH (1111_1000_1111_0011_0111_1011_0010_1101B),
R8=3000_0000H (0011_0000_0000_0000_0000_0000_0000_0000B), Flags S, V=1; C,
Z, B=0
76543210
C Z S V B CIRQE IRQE
* * * *0–––
Legend
C = Set to 1 if the last bit shifted out of the destination register is 1; otherwise set to 0.
Z = Set to 1 if the 32-bit destination register contains zero; otherwise set to 0.
S = Set to 1 if bit [31] of the destination register is 1; otherwise set to 0.
V = Set to 1 if the Carry and Sign flags are different; otherwise set to 0.
B = Cleared to 0.
CIRQE = No change.
IRQE = No change.
Instruction, Operands
Extend
Prefix Word 0 Word 1 Word 2
SRAX Rd, Rs 0007H {B4H, Rs, Rd}
Comentários a estes Manuais