User Manual
C166S V2
Detailed Instruction Description
User Manual
8-410
V 1.7, 2001-01
CoSHR
Accumulator Logical Shift Right
CoSHR
Group
Shift Instructions
Syntax
CoSHR op1
Source Operand(s)
op1
→
5-bit unsigned data
Destination Operand(s)
ACC
→
40-bit signed value
Operation
(count)
←
(op1)
(C)
←
0
DO WHILE (count)
≠
0
((ACC[n])
←
(ACC[n+1]) [n=0...38]
(ACC[39])
←
0
(count)
←
(count) -1
END WHILE
Description
Shifts the 40-bit ACC register contents right the number of times as specified by the
operand op1. The most significant bits of the result are filled with zeros accordingly.
Only shift values from 0 to 16 (inclusive) are allowed. op1 can be either a 5-bit unsigned
immediate data (the shift range is from 0 to 16 in this case) or the four least significant
bits (the shift range is from 0 to 15 in that case) of any register directly or indirectly
addressed operand. The MS bit of the MCW register does not affect the result.
MAC Flags
MV
Always cleared.
MSL
Not affected.
ME
Set if the MAE is used. Cleared otherwise.
MSV
Not affected.
MC
Always cleared.
MZ
Set if result equals zero. Cleared otherwise.
MN
Set if the most significant bit of the result is set. Cleared otherwise.
MV
MSL
ME
MSV
MC
MZ
MN
Sat.
0
-
*
-
0
*
*
no
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...