ASH
Arithmetic Shift
13-72
Status Bits These condition flags are modified only if the destination register is R7–R0.
LUF Unaffected
LV 1 if an integer overflow occurs; unchanged otherwise
UF 0
NMSB of the output
Z1 if a 0 result is generated; 0 otherwise
V1 if an integer overflow occurs; 0 otherwise
CSet to the value of the last bit shifted out; 0 for a shift
count
of 0
OVM Operation is not affected by OVM bit value.
Example 1 ASH R1,R3
Before Instruction After Instruction
R1 00 0000 0010 R1 00 0000 0010
R3 00 000A E000 R3 00 E000 0000
LUF 0LUF 0
LV 0LV 1
UF 0UF 0
N0N1
Z0Z0
V0V1
C0C0
16
Example 2 ASH @98C3h,R5
Before Instruction After Instruction
R5 00 AEC0 0001 R5 00 FFFF FFAE
DP 80 DP 80
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N1
Z0Z0
V0V0
C0C1
Data memory
8098C3h 0FFE8 8098C3h 0FFE8
–24 –24
Mode Bit