Wiki

Clone wiki

Super-Mon / Short_operators

SHORT: OPERATOR REFERENCE

ALL SHORT VARIABLES AND OPS ARE 16-BIT
(2-BYTE) UNSIGNED QUANTITIES.

+  ADD              <  LESS THAN
-  SUBTRACT         <= LESS OR EQUAL
*  MULTIPLY         >  GREATER THAN
/  DIVIDE           >= GREATER OR EQUAL
%  MODULO           == EQUAL
<< SHIFT LEFT       != NOT EQUAL
>> SHIFT RIGHT
&  LOGICAL AND      ]  INDEX WORD ARRAY
@  LOGICAL OR       .  INDEX BYTE STRUCT
^  LOGICAL XOR

ARRAY: X]Y ACCESSES THE Y'TH WORD IN
  THE ARRAY REFERED TO BY POINTER X

STRUCT: X.Y ACCESSES THE Y'TH BYTE IN
  STRUCTURE REFERED TO BY PTR X. ONLY
  THE LOWER BYTE OF Y IS USED SO THE
  UPPER BYTE CAN BE USED TO MAKE IT A
  UNIQUE LABEL.

This page is from Super-mon's built-in help system.

Updated