TEXTEQU directive, similar to EQU, create a text macro (text macro). It has three formats: the first is the name assigned to the text; the second is the distribution of the existing macro text content; the third is assigned an integer constant expression:
name TEXTEQU <text>
name TEXTEQU textmacro
name TEXTEQU %constExpr
For example, using a text macro variables prompt1 continueMsg:
continueMsg TEXTEQU <"Do you wish to continue (Y/N)?"> .data prompt1 BYTE continueMsg
Text macros can build another. The following example, count is assigned an integer expression containing rowSize. A symbol is defined as a move mov. Finally, create setupAL with the move and count:
rowSize = 5 count TEXTEQU %(rowSize * 2) move TEXTEQU <mov> setupAL TEXTEQU <move al,count>
Therefore, the statement
setupAL
It will be compiled as
mov al, 10
Symbols defined with TEXTEQU ready to be redefined.
Next: operand types
Highly recommended reading articles
40 + annual salary of big data development [W] tutorial, all here!