English
Language : 

C166SV2 Datasheet, PDF (288/438 Pages) Infineon Technologies AG – 16-Bit Microcontroller
User Manual
C166S V2
Detailed Instruction Description
PRIOR
Group
Prioritize Register
Prioritize Instruction
Syntax
PRIOR op1, op2
Source Operand(s)
op2 → WORD
PRIOR
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
Z
V
C
N
0
*
0
0
0
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
Mnemonic
PRIOR
Rwn , Rwm
Format
2B nm
Bytes
2
User Manual
8-288
V 1.7, 2001-01