AMOSi:Bchg

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-5/Help_55.AMOS


Flips the selected bit in the number from 0 to 1 or vice versa.


Bchg position,variable

Affects the contents of a single AMOS variable.


Position holds a value from 0 to 31 which enters the bit number to be changed.


Bchg position,expression

If you use an expression rather than a simple variable, BGHG will treat it as the ADDRESS in memory of a value to be changed.