## Variables

All variables are 8-bit unsigned integers, giving a range from 0 to 255. Microbe supports the typical unary operations (acting on one variable) and binary operations (acting on two variables) that are supported by the PIC. In addition, Microbe also supports division and multiplication.

### Unary Operations

• rotateleft x - Rotates the variable x left through carry.

• rotateright x - Rotates the variable x right through carry.

• increment x - Increments the variable x. If x has a value of 255, then x wraps round to 0.

• decrement x - Decrements the variable x. If x has a value of 0, then x wraps round to 255.

### Arithmetic

Supported operations:

• Subtraction: x - y

• Multiplication: x * y

• Division: x / y

• Binary XOR: x XOR y

• Binary AND: x AND y

• Binary OR: x OR y

### Comparison

Supported operations:

• Equals: x == y

• Does not equal: x != y

• Is greater than: x > y

• Is less than: x < y

• Is greater than or equal to: x >= y

• Is less than or equal to: x <= y

For example:

Example 5.10. Comparison

````if` PORTA >= 5 `then`
{
...
}```