Bitwise Operations Overview

About Bitwise Operations

GCBASIC (as with most other microcontroller programming languages) supports bitwise operations.

Bitwise operations are performed on one or more bit patterns at the level of their individual bits.

GCBASIC supports the following methods.

Method Meaning

Set

Assigns a Bit value of On or Off

SetWith

Evaluates an expression and assigns the result

FnLSL

Performs a Bitwise LEFT shift

FnLSR

Performs a Bitwise RIGHT shift

Rotate

Performs a rotation of a variable of one bit in a specified direction

For more help, see: Set, SetWith, FnLSL, FnLSR and Rotate