From Amiga Coding
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.