BITS ==== Single-bit bitwise tests and operations Usage ===== state% = BTST% (bit_no%, value) Test a bit state% = BSET% (bit_no%, value) Test and then set a bit state% = BCLR% (bit_no%, value) Test and then clear state% = BCHG% (bit_no%, value) Test and then change Where bit_no% (modulo 32) is the number of the bit to test or change, and value is the operand state% reflects the state of the bit prior to any change. The operand value is changed according to the specified operation. Note: value must always be a long word (in S*BASIC given as a floating point variable with a value of between -2,147,483,648 and 2,147,483,647) or you wont get the return value. Compatibility ============= Should be compatible across all systems, including Turbo (V5.10). Software status =============== V0.01, pjw, 1996 V0.02, pjw, 2023 Aug 17, rewrite and re-packaged. 32bit only Conditions of use and DISCLAIMER as per Knoware.no
Generated by QuickHTM, 2023 Aug 17