Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>numor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NUMOR()

Syntax:     NUMOR(<expH1>,<expH2>[,...<expH_n>])

Arguments:  <expH1> to <expH_n> may be either decimal numbers or
            hexadecimal string of digits.

Returns:    A numeric value.
            The return value corresponds to an OR of all values denoted
            as arguments.

Usage:      With NUMOR() it is possible to set a bit field into 1 or
            several bits in a targeted manner.  This might be used for
            example, in order to switch on file attributes.

Notes:      An invalid argument will lead to the result of -1.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Set the fifth bit in the interface register.
            * MCR of port 1, without changing the other bits.
            COM_MCR(1,NUMOR(COM_MCR(1),16))

            * The register contains:    00000011
            * The constant in binary:   00010000
            *
            * The result(19)            00010011



See Also: ISBIT() NUMAND() NUMNOT() NUMXOR() SETBIT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson