Difference between revisions of "AMOSi:Btst"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) m (1 revision(s)) |
(No difference)
|
Latest revision as of 01:51, 17 November 2007
an example can be found on AMOSPro_Examples:Examples/H-5/Help_55.AMOS
Tests a single bit in your number and returns a value of -1 (true) if it's a one, or 0 (False) if it's a zero.
test=Btst(position,variable)
Checks a bit in your selected variable. position holds a bit number ranging from 0 to 31.
test=Btst(position,expression)
Evaluates the expression, and tests the bit at the resulting memory ADDRESS. The bit position is restricted to values from 0 to 7.