[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_ROR()
Rotate bits in an integer to the right
------------------------------------------------------------------------------
Syntax
fn_ror( <nInt> | <cInt>, <nBits> ) -> nResult
Arguments
<nInt> may either be a numeric integer, or a 16-bit character string
that is the binary representation of a numeric integer. <nBits>
must be a numeric integer.
Returns
<nResult>, a numeric
Description
The value returned is obtained by rotating the bits in <nInt>
to the right. <nBits> determines the number of bits to rotate.
If any parameters are invalid, the function will return zero.
Examples
nX := 12
? fn_ror( nX, 2 ) // 3
Source: N:\SRC\MISC\FNROR.ASM
Author: Ted Means
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson