EasyManua.ls Logo

NXP Semiconductors LPC1768 - Clz; Syntax; Operation; Restrictions

NXP Semiconductors LPC1768
841 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 20 December 2013 686 of 841
NXP Semiconductors
UM10360
Chapter 34: Appendix: Cortex-M3 user guide
34.2.5.4 CLZ
Count Leading Zeros.
34.2.5.4.1 Syntax
CLZ{cond} Rd, Rm
where:
cond is an optional condition code, see Section 34.2.3.7
.
Rd is the destination register.
Rm is the operand register.
34.2.5.4.2 Operation
The
CLZ
instruction counts the number of leading zeros in the value in Rm and returns the
result in Rd. The result value is 32 if no bits are set in the source register, and zero if
bit[31] is set.
34.2.5.4.3 Restrictions
Do not use SP and do not use PC.
34.2.5.4.4 Condition flags
This instruction does not change the flags.
34.2.5.4.5 Examples
CLZ R4,R9
CLZNE R2,R3

Table of Contents

Other manuals for NXP Semiconductors LPC1768

Related product manuals