1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- This file documents the GNU Assembler "as".
4
5Copyright (C) 1991-2021 Free Software Foundation, Inc.
6
7Permission is granted to copy, distribute and/or modify this document
8under the terms of the GNU Free Documentation License, Version 1.3
9or any later version published by the Free Software Foundation;
10with no Invariant Sections, with no Front-Cover Texts, and with no
11Back-Cover Texts.  A copy of the license is included in the
12section entitled "GNU Free Documentation License".
13 -->
14<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
15<head>
16<title>Using as: Altmacro</title>
17
18<meta name="description" content="Using as: Altmacro">
19<meta name="keywords" content="Using as: Altmacro">
20<meta name="resource-type" content="document">
21<meta name="distribution" content="global">
22<meta name="Generator" content="makeinfo">
23<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24<link href="index.html#Top" rel="start" title="Top">
25<link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
26<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
27<link href="Pseudo-Ops.html#Pseudo-Ops" rel="up" title="Pseudo Ops">
28<link href="Ascii.html#Ascii" rel="next" title="Ascii">
29<link href="Align.html#Align" rel="previous" title="Align">
30<style type="text/css">
31<!--
32a.summary-letter {text-decoration: none}
33blockquote.smallquotation {font-size: smaller}
34div.display {margin-left: 3.2em}
35div.example {margin-left: 3.2em}
36div.indentedblock {margin-left: 3.2em}
37div.lisp {margin-left: 3.2em}
38div.smalldisplay {margin-left: 3.2em}
39div.smallexample {margin-left: 3.2em}
40div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
41div.smalllisp {margin-left: 3.2em}
42kbd {font-style:oblique}
43pre.display {font-family: inherit}
44pre.format {font-family: inherit}
45pre.menu-comment {font-family: serif}
46pre.menu-preformatted {font-family: serif}
47pre.smalldisplay {font-family: inherit; font-size: smaller}
48pre.smallexample {font-size: smaller}
49pre.smallformat {font-family: inherit; font-size: smaller}
50pre.smalllisp {font-size: smaller}
51span.nocodebreak {white-space:nowrap}
52span.nolinebreak {white-space:nowrap}
53span.roman {font-family:serif; font-weight:normal}
54span.sansserif {font-family:sans-serif; font-weight:normal}
55ul.no-bullet {list-style: none}
56-->
57</style>
58
59
60</head>
61
62<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
63<a name="Altmacro"></a>
64<div class="header">
65<p>
66Next: <a href="Ascii.html#Ascii" accesskey="n" rel="next">Ascii</a>, Previous: <a href="Align.html#Align" accesskey="p" rel="previous">Align</a>, Up: <a href="Pseudo-Ops.html#Pseudo-Ops" accesskey="u" rel="up">Pseudo Ops</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
67</div>
68<hr>
69<a name="g_t_002ealtmacro"></a>
70<h3 class="section">7.4 <code>.altmacro</code></h3>
71<p>Enable alternate macro mode, enabling:
72</p>
73<dl compact="compact">
74<dt><code>LOCAL <var>name</var> [ , &hellip; ]</code>
75<a name="index-LOCAL-name-_005b-_002c-_2026-_005d"></a>
76</dt>
77<dd><p>One additional directive, <code>LOCAL</code>, is available.  It is used to
78generate a string replacement for each of the <var>name</var> arguments, and
79replace any instances of <var>name</var> in each macro expansion.  The
80replacement string is unique in the assembly, and different for each
81separate macro expansion.  <code>LOCAL</code> allows you to write macros that
82define symbols, without fear of conflict between separate macro expansions.
83</p>
84</dd>
85<dt><code>String delimiters</code>
86<a name="index-String-delimiters"></a>
87</dt>
88<dd><p>You can write strings delimited in these other ways besides
89<code>&quot;<var>string</var>&quot;</code>:
90</p>
91<dl compact="compact">
92<dt><code>'<var>string</var>'</code></dt>
93<dd><p>You can delimit strings with single-quote characters.
94</p>
95</dd>
96<dt><code>&lt;<var>string</var>&gt;</code></dt>
97<dd><p>You can delimit strings with matching angle brackets.
98</p></dd>
99</dl>
100
101</dd>
102<dt><code>single-character string escape</code>
103<a name="index-single_002dcharacter-string-escape"></a>
104</dt>
105<dd><p>To include any single character literally in a string (even if the
106character would otherwise have some special meaning), you can prefix the
107character with &lsquo;<samp>!</samp>&rsquo; (an exclamation mark).  For example, you can
108write &lsquo;<samp>&lt;4.3 !&gt; 5.4!!&gt;</samp>&rsquo; to get the literal text &lsquo;<samp>4.3 &gt; 5.4!</samp>&rsquo;.
109</p>
110</dd>
111<dt><code>Expression results as strings</code>
112<a name="index-Expression-results-as-strings"></a>
113</dt>
114<dd><p>You can write &lsquo;<samp>%<var>expr</var></samp>&rsquo; to evaluate the expression <var>expr</var>
115and use the result as a string.
116</p></dd>
117</dl>
118
119
120
121
122</body>
123</html>
124