Directives index
November 6, 2025 ยท View on GitHub
| Directive | Used for |
|---|---|
MACRO, ENDM, SHIFT, MEXIT | Define macros |
REPT, ENDR, REXIT | Repeat blocks |
EQU, SET | Define integer symbols |
EQUS | Define string symbols |
GROUP | Define a new section group symbol |
RSRESET, RSSET, __RB, __RW, __RL | Define RS symbols |
PRINTT, PRINTV, PRINTF | Output text to stdout |
FAIL, WARN | Display a warning or error on the console |
ASSERTF, ASSERTW | Display a warning or error on the console, if an expression is false |
EXPORT, IMPORT, GLOBAL, XDEF, XREF | Export and import symbols to/from other modules |
PURGE | Remove a symbol from the symbol table |
INCLUDE | Include and process a different source file |
__DCB, __DCW, __DCL | Define data |
INCBIN | Insert a binary file |
__DSB, __DSW, __DSL | Reserve space in memory |
EVEN, CNOP | Section alignment |
SECTION | Define a new section |
PUSHS, POPS | Push or pop a section on the section stack |
ORG | Set the origin address for the following code |
OPT | Set options |
PUSHO, POPO | Push or pop options on the option stack |
RANDSEED | Set random number generator seed |
IFC, IFNC, IFD, IFND, IF, IFEQ, IFGT, IFGE, IFLT, IFLE, ELSE, ENDC | Used to form conditional assembling blocks |
Further reading
- Introduction, goals and background
- Invoking the assembler and basic syntax
- Symbols and labels
- Control structures like
INCLUDE,MACROs and conditional assembling. - Expressions and how they're built
- Printing diagnostic messages, warnings and errors
- Organising code into sections. How to define data.
- The linker