Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Bit-Manipulation Functions
◄Up► ◄Contents► ◄Index► ◄Back►
─────Bit-Manipulation Functions─────────────────────────────────────────────
Function Operation
Inclusive or If the <n>th bit of either the first or second
argument is 1, then the <n>th bit of the result
is set to 1.
Logical shift If <intB> is greater than or equal to zero, shift
<intA> logically left by <intB> bits. If <intB>
is less than zero, shift <intA> logically right by
<intB> bits.
Arithmetic shift If <intB> is greater than or equal to zero, shift
<intA> arithmetically left by <intB> bits. If
<intB> is less than zero, shift <intA>
arithmetically right by <intB> bits.
Rotate If <intB> is greater than or equal to zero,
rotate <intA> left <intB> bits. If <intB> is
less than zero, rotate <intA> right <intB> bits.
Exclusive or If the <n>th bits of the first and second
arguments are not equal to each other, then the
<n>th bit of the result is set to 1. Otherwise,
the <n>th bit of the result is set to 0.
Logical product If the <n>th bits of both the first and second
arguments are 1, then the <n>th bit of the
result is set to 1. Otherwise, the <n>th bit of
the result is set to 0.
Logical complement If the <n>th bit of the argument is 1, then the
<n>th bit of the result is set to 0. Otherwise,
the <n>th bit of the result is set to 1.
Bit clear Clear <intB> bit in <intA>.
Bit set Set <intB> bit in <intA>.
Bit change Reverse value of <intB> bit in <intA>.
Bit test Return .TRUE. if bit <intB> in <intA> is set to 1.
Return .FALSE. otherwise.
-♦-