ST10 FAMILY PROGRAMMING MANUAL
PRIOR
Syntax
Operation
Data Types
Description
This instruction stores a count value in the word operand specified by op1 indicating the number of single
bit shifts required to normalize the 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.
Flags
E
0
E
Always cleared.
Z
Set if the source operand op2 equals zero. Cleared otherwise.
V
Always cleared.
C
Always cleared.
N
Always cleared.
Addressing Modes
Mnemonic
PRIOR
102/172
Prioritize Register
PRIOR
(tmp)
(count)
DO WHILE (tmp
15
(tmp
)
n
(count)
END WHILE
(op1)
WORD
Z
*
Rw
, Rw
n
m
op1, op2
<-- (op2)
<-- 0
) ≠ 1 AND (count) ≠ 15 AND (op2) ≠ 0
<-- (tmp
)
n-1
<-- (count) + 1
<-- (count)
V
0
Format
2B nm
C
N
0
0
Bytes
2
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers