This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:papc:chapter_6_13 [2025/11/13 11:49] – ktokarz | en:multiasm:papc:chapter_6_13 [2026/02/20 10:15] (current) – [Macro functions] ktokarz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Macros ====== | ====== Macros ====== | ||
| - | Macros are elements of language that enable the replacement of one text with another. In assembler language, macros can be implemented differently | + | Macros are elements of language that enable the replacement of one, usually shorter |
| * Text macros, | * Text macros, | ||
| * Macro procedures, | * Macro procedures, | ||
| Line 201: | Line 201: | ||
| ===== Macro functions ===== | ===== Macro functions ===== | ||
| - | A macro function is a macro which returns a value. As all macros are tex processing feature | + | A macro function is a macro which returns a value. As all macros are texts, |
| ===== Predefined macro functions ===== | ===== Predefined macro functions ===== | ||
| Line 211: | Line 211: | ||
| name CATSTR string [[, string ]] | name CATSTR string [[, string ]] | ||
| - | name TEXTEQU @SubStr string, start [, length ] | + | name TEXTEQU @SubStr |
| - | name TEXTEQU @InStr [[start]], string, substring | + | name TEXTEQU @InStr |
| - | name TEXTEQU @SizeStr string | + | name TEXTEQU @SizeStr |
| - | name TEXTEQU @CatStr string [[, string ]] | + | name TEXTEQU @CatStr |
| </ | </ | ||