English
Language : 

GMS30C2216 Datasheet, PDF (314/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
A-142
Test Leading Zeros
Appendix A. Instruction Set Details
TESTLZ
Format:
LL format
15
OP-code
1000 1110
7
43
0
Ld-code
Ls-code
Ls-code encodes L0..L15 for Ls
Ld-code encodes L0..L15 for Ld
Notation:
TESTLZ Ld, Ls
Description:
The number of leading zeros in the source operand is tested and placed in the destination
register. A source operand equal to zero yields 32 as a result. All condition flags remain
unchanged.
Operation:
Ld := number of leading zeros in Ls;
Exceptions:
None.