[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NUMOR()
 Performs a 16-bit "OR" of a list of numbers
------------------------------------------------------------------------------
 Syntax

     NUMOR(<nWORD1|cHexWORD1>,<nWORD2|cHexWORD2>,
        [<nWORDncHexWORDn>]) --> nWORD-OR

 Argument

     <nWORD1|cHexWORD1>...<nWORDn|cHexWORDn>  Designates either decimal
     numbers or hexadecimal digit strings.

 Returns

     The returned value corresponds to all the values designated as
     parameters joined with a logical OR.

 Description

     NUMOR() allows you to target and set a single bit or multiple bits.  For
     example, use this to set a file attribute.

 Note

     .  An invalid parameter returns a result of -1.

 Example

     Set bit 5 in the MCR interface register of port 1, without changing any
     other bits:

     The register contains:      00000011
     The constant in binary:     00010000
                                 ________
     The result: (19)            00010011
     COM_MCR(1, NUMOR(COM_MCR(1), 16))


See Also: NUMAND() NUMNOT() NUMXOR() SETBIT() ISBIT()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson