.macro   .endmacro

.macro

Macros are defined by placing code between the assembler directives .macro and .endmacro. For example:

.macro poptos
    tosl Y+ ld,
    tosh Y+ ld,
.endmacro
 
.macro pushtos
    tosh -Y  st,
    tosl -Y  st,
.endmacro