Important: The information in this document is obsolete and should not be used for new development.
BitClr
You can use theBitClr
procedure to clear a particular bit.
PROCEDURE BitClr (bytePtr: Ptr; bitNum: LongInt);
bytePtr
- A pointer to a byte in memory.
bitNum
- The bit to be cleared, specified as a positive offset from the high-order bit of the byte pointed to by the
bytePtr
parameter. The bit being cleared need not be in the same byte pointed to bybytePtr
.DESCRIPTION
The BitClr procedure clears (to a value of 0) the bit specified by thebytePtr
andbitNum
parameters.SPECIAL CONSIDERATIONS
The bit-numbering scheme used by theBitClr
procedure is the opposite of MC680x0 bit numbering. To convert an MC680x0 bit number to the format required by theBitClr
procedure, subtract the MC680x0 bit number from the highest bit number.SEE ALSO
For an example of the use of theBitClr
procedure, see page 3-16. For more information about reversed bit-numbering, see "Reversed Bit-Numbering" on page 3-7.