BitClrYou can use the
BitClrprocedure to clear a particular bit.
PROCEDURE BitClr (bytePtr: Ptr; bitNum: LongInt);
- A pointer to a byte in memory.
- The bit to be cleared, specified as a positive offset from the high-order bit of the byte pointed to by the
bytePtrparameter. The bit being cleared need not be in the same byte pointed to by
DESCRIPTIONThe BitClr procedure clears (to a value of 0) the bit specified by the
SPECIAL CONSIDERATIONSThe bit-numbering scheme used by the
BitClrprocedure is the opposite of MC680x0 bit numbering. To convert an MC680x0 bit number to the format required by the
BitClrprocedure, subtract the MC680x0 bit number from the highest bit number.
SEE ALSOFor an example of the use of the
BitClrprocedure, see page 3-16. For more information about reversed bit-numbering, see "Reversed Bit-Numbering" on page 3-7.