DEFINE

Defines new macro.

Syntax

DEFINE Name [indetifier] Element1 [any-token], Element2 [any-token], ...
DEFINE Name [indetifier]

Description

Macro is an identifier defined in preprocessor. It has a name and it can contains one or more tokens. Every identifier with name of this macro in the source code below its definition is replaced by its tokens. Macros that has only name and has no content cannot be expanded in source code.

Example

DEFINE width 640

IFNDEF width
  ERROR "You have forgotten to define width!"
ENDIF

MOV4i width AX