AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:          CLZ {<cond>} <destination>, <operand1>
Operation:     return the number of binary zeros in <operand1>
Flags:          Unaffected

This operation counts from bit 31 downwards until it encounters a '1', placing the answer in <destination>.
It is only available from ARM architecture 5 onwards.
MOV  R0, #%1111     
CLZ  R1, R0          ; Puts 28 into R1

If the source or destination is R15, the result is unpredictable.

[sh-index] Back to list of manuals