Ax51 User's Guide

Class Operators

The class operator assigns a memory class to an expression. This is how you associate an expression with a class. The Ax51 assembler generates an error message if you use an expression with a class on an instruction which does not support this class, for example, when you use an XDATA expression as a direct address.

The following table lists the class operators and provides a brief description of each.

OperatorSyntaxDescription
BITBIT expressionAssigns the class BIT to the expression.
CODECODE expressionAssigns the class CODE to the expression.
DATADATA expressionAssigns the class DATA to the expression.
IDATAIDATA expression2Assigns the class IDATA to the expression.
XDATAXDATA expression2True if expression1 is less than expression2