Changes between Version 8 and Version 9 of ClrxAsmPseudoOps


Ignore:
Timestamp:
04/28/16 23:00:19 (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ClrxAsmPseudoOps

    v8 v9  
    2727If aligment will be done in <code>.text</code> section and second expresion will not be given, then
    2828assembler fills no-operation instructions in that hole.</p>
     29<h3>.altmacro</h3>
     30<p>Enable alternate macro syntax. This mode enables following features:</p>
     31<ul>
     32<li>new macro substitution without backslash:</li>
     33</ul>
     34<p><code>.macro test1 a b
     35    .int a, b
     36.endm
     37test1 12,34     # put 12 and 34 integer value</code></p>
     38<ul>
     39<li>evaluating expression as string in macro arguments:</li>
     40</ul>
     41<p><code>.macro stringize a,b,c
     42    .string "a, b, c"
     43.endm
     44stringize %12|33, %43*5, %12-65 # generate string "45, 215, -53"</code></p>
     45<ul>
     46<li>new string quoting in macro arguments (by triagular brackets '&lt;' and '&gt;'). Also, enables
     47new string escaping by '!'.</li>
     48</ul>
     49<p><code>test1 &lt;this is test !&lt;!&gt;&gt;  # put "this is test &lt;&gt;" string to first macro argument</code></p>
     50<ul>
     51<li>local symbol names. 'local name' defines new unique symbol name for name. If any name
     52will be occurred then that unique name will substituted.</li>
     53</ul>
     54<p><code>local myName    # myName substitutes new unique name
     55myName:     # define new label with unique name</code></p>
     56<p>An alternate macro syntax does not disable any standard macro syntax features likes
     57macro substitution via backslashes, '\@'.</p>
    2958<h3>.amd</h3>
    3059<p>This pseudo-operation should to be at begin of source.
     
    382411<h3>.main</h3>
    383412<p>Go to main binary over binary of the kernel.</p>
     413<h3>.noaltmacro</h3>
     414<p>Disables alternate macro syntax.</p>
    384415<h3>.octa</h3>
    385416<p>Syntax: .octa OCTA-LITERAL,...</p>