Macros that work with the bits and bytes of numbers.
Description
The macros listed here manipulate bits and bytes. The "Byte Manipulation" macros return the value of a specific byte or word of an
Integer value, while the "Bit Manipulation" macros set or test individual bits in an
Integer value.
Byte Manipulation Macros
Byte and word manipulation macros.
Bit Manipulation Macros
Bit manipulation macros.
Byte Manipulation Macros
LoByte
Returns the least significant byte of an unsigned integer.
HiByte
Returns the most significant byte of an unsigned integer.
LoWord
Returns the least significant word of an unsigned integer.
HiWord
Returns the most significant word of an unsigned integer.
| Bit Manipulation Macros
Bit
Returns 0 or -1 if the specified bit in an integer is clear or set.
BitReset
Returns an integer with the specified bit set to 0.
BitSet
Returns an integer with the specified bit set to 1.
|