User’s Manual
C166S V1 SubSystem
Detailed Instruction Set
User’s Manual
6-74
V 1.6, 2001-08
PRIOR
Prioritize Register
PRIOR
Group
Prioritize Instruction
Syntax
PRIOR op1, op2
Source Operand(s)
op2
→
WORD
Destination Operand(s)
op1
→
WORD
Operation
(tmp)
←
(op2)
(count)
←
0
DO WHILE (((tmp[15])
≠
1) AND ((op2)
≠
0)))
(tmp[n])
←
(tmp[n-1]) [n=15...1]
(count)
←
(count) + 1
END WHILE
(op1)
←
(count)
Description
This instruction stores a count value in the word operand specified by op1. This count
value indicates the number of single bit shifts required to normalize the word operand
op2 so that its most significant bit is equal to one. If the source operand op2 equals
zero, a zero is written to operand op1 and the zero flag is set. Otherwise the zero flag is
cleared.
CPU Flags
E
Always cleared.
Z
Set if the value of the source operand op2 equals zero. Cleared
otherwise.
V
Always cleared.
C
Always cleared.
N
Always cleared.
Encoding
E
Z
V
C
N
0
*
0
0
0
Mnemonic
Format
Bytes
PRIOR
Rw
n
, Rw
m
2B nm
2
Содержание C166S V1 SubSystem
Страница 10: ...User s Manual C166S V1 SubSystem User s Manual I 6 V 1 6 2001 08...
Страница 16: ...User s Manual C166S V1 SubSystem Introduction User s Manual 1 6 V 1 6 2001 08...
Страница 126: ...User s Manual C166S V1 SubSystem Central Processing Unit User s Manual 3 96 V 1 6 2001 08...
Страница 178: ...User s Manual C166S V1 SubSystem Memory Organization User s Manual 4 52 V 1 6 2001 08...
Страница 206: ...User s Manual C166S V1 SubSystem Instruction Set User s Manual 5 28 V 1 6 2001 08...
Страница 306: ...User s Manual C166S V1 SubSystem Detailed Instruction Set User s Manual 6 100 V 1 6 2001 08...
Страница 362: ...User s Manual C166S V1 SubSystem The External Bus Interface User s Manual 8 40 V 1 6 2001 08...
Страница 452: ...User s Manual C166S V1 SubSystem General Purpose Timer Unit User s Manual 12 44 V 1 6 2001 08...
Страница 454: ...User s Manual C166S V1 SubSystem Instruction Index User s Manual 13 2 V 1 6 2001 08...
Страница 459: ......