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 |
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 |
IFC , IFNC , IFD , IFND , IF , IFEQ , IFGT , IFGE , IFLT , IFLE , ELSE , ENDC |
Used to form conditional assembling blocks |
- Introduction, goals and background
- Invoking the assembler and basic syntax
- Symbols and labels
- Control structures like
INCLUDE
,MACRO
s 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