Whenever a command expects a number it can be specified by a term. The following arithmetics may be used:
| UpArrow, <, > | bank-, hi-, lo-byte |
| mod | modulo |
| *, / | multiply/divide |
| +, - | add/subtract |
| +, - | positive/negative sign |
| >>, << | right/left shift |
| @a | and |
| @n | not |
| @e | eor |
| @o | or |
The operations are listed by their priority. Brackets can override this.
Example:
All commands do the same
m c002
m !49152+8>>2
m (8+4)*1000 + 2