Skip to content

Commit

Permalink
Update RGBDS master documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Jul 25, 2024
1 parent d8b14f2 commit 0842c66
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 1 deletion.
Binary file modified docs/gbz80.7.pdf
Binary file not shown.
Binary file modified docs/rgbasm.1.pdf
Binary file not shown.
16 changes: 15 additions & 1 deletion docs/rgbasm.5.html
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,11 @@ <h3 class="Ss" id="Variables"><a class="permalink" href="#Variables">Variables</
DEF y &gt;&gt;= 1 ; y == 10
DEF x ^= y ; x == 1</pre>
</div>
<p class="Pp">Declaring a variable with <code class="Ic">EXPORT DEF</code> or
<code class="Ic">EXPORT REDEF</code> will define and
<code class="Ic">EXPORT</code> it at the same time. (See
<a class="Sx" href="#Exporting_and_importing_symbols">Exporting and
importing symbols</a> below).</p>
</section>
<section class="Ss">
<h3 class="Ss" id="Numeric_constants"><a class="permalink" href="#Numeric_constants">Numeric
Expand Down Expand Up @@ -1397,6 +1402,11 @@ <h3 class="Ss" id="Numeric_constants"><a class="permalink" href="#Numeric_consta
assert NUM_ITEMS == 4
assert ITEM_04 == 16</pre>
</div>
<p class="Pp">Declaring a numeric constant with <code class="Ic">EXPORT
DEF</code> or <code class="Ic">EXPORT REDEF</code> will define and
<code class="Ic">EXPORT</code> it at the same time. (See
<a class="Sx" href="#Exporting_and_importing_symbols">Exporting and
importing symbols</a> below).</p>
</section>
<section class="Ss">
<h3 class="Ss" id="Offset_constants"><a class="permalink" href="#Offset_constants">Offset
Expand Down Expand Up @@ -1460,6 +1470,10 @@ <h3 class="Ss" id="Offset_constants"><a class="permalink" href="#Offset_constant
assumed to be 1.</p>
<p class="Pp">Note that colons &#x2018;<code class="Li">:</code>&#x2019;
following the name are not allowed.</p>
<p class="Pp">Declaring an offset constant with <code class="Ic">EXPORT
DEF</code> will define and <code class="Ic">EXPORT</code> it at the same
time. (See <a class="Sx" href="#Exporting_and_importing_symbols">Exporting
and importing symbols</a> below).</p>
</section>
<section class="Ss">
<h3 class="Ss" id="String_constants"><a class="permalink" href="#String_constants">String
Expand Down Expand Up @@ -1494,7 +1508,6 @@ <h3 class="Ss" id="String_constants"><a class="permalink" href="#String_constant
</div>
<p class="Pp">Note that colons &#x2018;<code class="Li">:</code>&#x2019;
following the name are not allowed.</p>
<p class="Pp">String constants can't be exported or imported.</p>
<p class="Pp">String constants, like numeric constants, cannot be redefined.
However, the <code class="Ic">REDEF</code> keyword will define or redefine a
string constant symbol. For example:</p>
Expand All @@ -1504,6 +1517,7 @@ <h3 class="Ss" id="String_constants"><a class="permalink" href="#String_constant
; prints &quot;Hello, world!&quot;
PRINTLN &quot;{s}\n&quot;</pre>
</div>
<p class="Pp">String constants can't be exported or imported.</p>
<p class="Pp"><b class="Sy">Important note</b>: When a string constant is
expanded, its expansion may contain another string constant, which will be
expanded as well. If this creates an infinite loop,
Expand Down
Binary file modified docs/rgbasm.5.pdf
Binary file not shown.
Binary file modified docs/rgbds.5.pdf
Binary file not shown.
Binary file modified docs/rgbds.7.pdf
Binary file not shown.
Binary file modified docs/rgbfix.1.pdf
Binary file not shown.
Binary file modified docs/rgbgfx.1.pdf
Binary file not shown.
Binary file modified docs/rgblink.1.pdf
Binary file not shown.
Binary file modified docs/rgblink.5.pdf
Binary file not shown.

0 comments on commit 0842c66

Please sign in to comment.