ST10 FAMILY PROGRAMMING MANUAL
102/172
PRIOR
Prioritize Register
Syntax
PRIOR
op1, op2
Operation
(tmp) <--
(op2)
(count) <--
0
DO WHILE (tmp
15
)
≠
1 AND (count)
≠
15 AND (op2)
≠
0
(tmp
n
) <--
(tmp
n-1
)
(count)
<-- (count) + 1
END WHILE
(op1) <--
(count)
Data Types
WORD
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
Addressing Modes
E
Z
V
C
N
0
*
0
0
0
E
Always cleared.
Z
Set if the source operand op2 equals zero. Cleared otherwise.
V
Always cleared.
C
Always cleared.
N
Always cleared.
Mnemonic
Format
Bytes
PRIOR
Rw
n
, Rw
m
2B nm
2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...