•  Back 
  •  Assembler 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure Assembler Documentation
Author      : John Kormylo
Version     : PASM.HYP 1.0
Subject     : Documentation/Pure Assembler
Nodes       : 740
Index Size  : 20262
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Pure Assembly Language Macros ]

Like C Language macros, assembly language macros work by symbolic
substitution.  All of the statements between the MACRO and ENDM
directives will be inserted into the source code at each appearance of
the macro name.  One can also specify a size modifier and/or
parameters which will be replaced in the macro expansion.

Using the LOCAL or MODULE directives one can define statement labels
inside the macro without having to worry about duplicate names.  By
using conditional assembly (see IFcc) one can test for missing
parameters or implement a variable length argument list.

The EXITM directive allows one to terminate the macro expansion inside
a conditional assembly block.

Examples:
  max.size
  call_TOS
  multiply_by_constant