© Thomas Kunz 2000
SCE 574
69
Anatomy of an Assembler Language (cont.)
äF) Memory declarations
äReserve and possibly initialize memory
äG) Comments
äFor human consumption, ignored by the assembler
äH) Macros
äDefine a sequence of code (like a procedure) with a name
äPUSHALL MACRO
äPUSH AX BX CX DX
äPUSH DS SI
äPUSH ES DI
äENDM
äTo invoke, use name instead of the code sequence
äPUSHALL
äto generate
äPUSH AX BX CX DX
äPUSH DS SI
äPUSH ES DI
ä
ä
In this example
PUSH is a regular
assembly instruction
and AX... are register
names