Skip to content

Commit 6b151b0

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 8bd0b04 commit 6b151b0

File tree

11 files changed

+8
-6
lines changed

11 files changed

+8
-6
lines changed

docs/gbz80.7.pdf

0 Bytes
Binary file not shown.

docs/rgbasm-old.5.pdf

0 Bytes
Binary file not shown.

docs/rgbasm.1.pdf

0 Bytes
Binary file not shown.

docs/rgbasm.5.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,8 @@ <h2 class="Sh" id="SYMBOLS"><a class="permalink" href="#SYMBOLS">SYMBOLS</a></h2
13851385
single dot &#x2018;<code class="Li">.</code>&#x2019;, which may not be the
13861386
first character.</p>
13871387
<p class="Pp">A symbol cannot have the same name as a reserved keyword, unless
1388-
it is prefixed by a hash &#x2018;#&#x2019;. For example,
1388+
its name is a &#x201C;raw identifier&#x201D; prefixed by a hash
1389+
&#x2018;#&#x2019;. For example,
13891390
&#x2018;<code class="Li">#load</code>&#x2019; denotes a symbol named
13901391
&#x2018;<code class="Li">load</code>&#x2019;, and
13911392
&#x2018;<code class="Li">#LOAD</code>&#x2019; denotes a different symbol
@@ -1548,7 +1549,7 @@ <h3 class="Ss" id="Variables"><a class="permalink" href="#Variables">Variables</
15481549
<section class="Ss">
15491550
<h3 class="Ss" id="Numeric_constants"><a class="permalink" href="#Numeric_constants">Numeric
15501551
constants</a></h3>
1551-
<p class="Pp"><code class="Ic">EQU</code> is used to define immutable numeric
1552+
<p class="Pp"><code class="Ic">EQU</code> is used to define numeric constant
15521553
symbols. Unlike &#x2018;=&#x2019; above, constants defined this way cannot
15531554
be redefined. These constants can be used for unchanging values such as
15541555
properties of the hardware.</p>
@@ -1669,7 +1670,9 @@ <h3 class="Ss" id="String_constants"><a class="permalink" href="#String_constant
16691670
&#x2018;<code class="Li">DEF name EQU/=/EQUS/etc ...</code>&#x2019;,
16701671
&#x2018;<code class="Li">PURGE name</code>&#x2019;, and
16711672
&#x2018;<code class="Li">MACRO name</code>&#x2019; will not expand string
1672-
constants in their names.</p>
1673+
constants in their names. Expansion is also disabled if the string
1674+
constant's name is a raw identifier prefixed by a hash
1675+
&#x2018;#&#x2019;.</p>
16731676
<div class="Bd Pp Bd-indent Li">
16741677
<pre>DEF COUNTREG EQUS &quot;[hl+]&quot;
16751678
ld a, COUNTREG
@@ -2155,9 +2158,8 @@ <h3 class="Ss" id="Invoking_macros"><a class="permalink" href="#Invoking_macros"
21552158
use the rest, you put the argument number in angle brackets, like
21562159
<code class="Ic">\&lt;10&gt;</code>.</p>
21572160
<p class="Pp">This bracketed syntax supports decimal numbers and numeric
2158-
constant symbols. For example,
2159-
&#x2018;<code class="Li">\&lt;_NARG&gt;</code>&#x2019; will get the last
2160-
argument.</p>
2161+
symbols. For example, &#x2018;<code class="Li">\&lt;_NARG&gt;</code>&#x2019;
2162+
will get the last argument.</p>
21612163
<p class="Pp">Other macro arguments and symbol interpolations will also be
21622164
expanded inside the angle brackets. For example, if
21632165
&#x2018;<code class="Li">\1</code>&#x2019; is

docs/rgbasm.5.pdf

110 Bytes
Binary file not shown.

docs/rgbds.5.pdf

0 Bytes
Binary file not shown.

docs/rgbds.7.pdf

0 Bytes
Binary file not shown.

docs/rgbfix.1.pdf

0 Bytes
Binary file not shown.

docs/rgbgfx.1.pdf

0 Bytes
Binary file not shown.

docs/rgblink.1.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)