Infineon Technologies C166S V2 User Manual page 288

16-bit microcontroller
Table of Contents

Advertisement

PRIOR
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(tmp) ← (op2)
(count) ← 0
DO WHILE (((tmp[15]) ≠ 1) AND ((op2) ≠ 0)))
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
Mnemonic
PRIOR
Rw
User Manual
Prioritize Register
Prioritize Instruction
PRIOR op1, op2
op2 → WORD
op1 → WORD
(tmp[n]) ← (tmp[n-1]) [n=15...1]
(count) ← (count) + 1
E
Z
0
*
, Rw
n
m
Detailed Instruction Description
V
C
0
0
Format
2B nm
8-288
User Manual
C166S V2
PRIOR
N
0
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents