#define

Defines a C pre-processor macro with the specified parameters. Note that the C pre-processor is run on the assembler file before normal assembly. C pre-processor macros should not be confused with normal macros declared using the MACRO and ENDM directives.

  #define 
  name [ (
  parms) ] 
  assembly_statement [ ; ] [ \ ]

  
  assembly_statement [ ; ] [ \ ]

  
  assembly_statement
  
  
  parms ::= 
  parameter [ ,
  parameter ]...

  
Parameters

name

Name you give the macro.

parms

List of parameters, separated by commas.

assembly_statement

Any valid assembly statement.

Remarks

To extend an assembly_statement, type a backslash (\) and continue the statement on the next line. To specify multiple assembly statements in the macro, type a semicolon and backslash (;\), then type a new assembly statement on the next line. If the assembler is in GNU mode, multiple statements can be on one line of code - separate them with semicolon characters (;).

Note: For more information, see "Using the #define Directive" on page 181.