Keil Logo

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.

Operator Syntax Description
BIT BIT expression Assigns the class BIT to the expression.
CODE CODE expression Assigns the class CODE to the expression.
DATA DATA expression Assigns the class DATA to the expression.
IDATA IDATA expression2 Assigns the class IDATA to the expression.
XDATA XDATA expression2 True if expression1 is less than expression2
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.