Skip to content

Commit 9375aa8

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 058b204 commit 9375aa8

11 files changed

Lines changed: 41 additions & 9 deletions

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.pdf

0 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.

docs/rgblink.5.html

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,54 @@ <h3 class="Ss" id="Basic_syntax"><a class="permalink" href="#Basic_syntax">Basic
1717
line. They are simply ignored.</p>
1818
<p class="Pp">Keywords are composed of letters and digits (but they can't start
1919
with a digit); they are all case-insensitive.</p>
20-
<p class="Pp">Numbers can be written in decimal format, or in binary using the
21-
&#x2018;<code class="Li">%</code>&#x2019; prefix, or in hexadecimal using
22-
the &#x2018;<code class="Li">$</code>&#x2019; prefix (hexadecimal digits are
23-
case-insensitive). Note that unlike
24-
<a class="Xr" href="./rgbasm.5">rgbasm(5)</a>, an octal
25-
&#x2018;<code class="Li">&amp;</code>&#x2019; prefix is not supported, nor
26-
are &#x2018;<code class="Li">_</code>&#x2019; digit separators.</p>
20+
<p class="Pp">Numbers can be written in a number of formats.</p>
21+
<table class="Bl-column Bd-indent">
22+
<tr id="Format">
23+
<td><a class="permalink" href="#Format"><b class="Sy">Format
24+
type</b></a></td>
25+
<td><a class="permalink" href="#Possible"><b class="Sy" id="Possible">Possible
26+
prefixes</b></a></td>
27+
<td><a class="permalink" href="#Accepted"><b class="Sy" id="Accepted">Accepted
28+
characters</b></a></td>
29+
</tr>
30+
<tr>
31+
<td>Decimal</td>
32+
<td>none</td>
33+
<td>0123456789</td>
34+
</tr>
35+
<tr id="$">
36+
<td>Hexadecimal</td>
37+
<td><a class="permalink" href="#$"><code class="Li">$</code></a>,
38+
<code class="Li">0x</code>, <code class="Li">0X</code></td>
39+
<td>0123456789ABCDEF</td>
40+
</tr>
41+
<tr id="&amp;">
42+
<td>Octal</td>
43+
<td><a class="permalink" href="#&amp;"><code class="Li">&amp;</code></a>,
44+
<code class="Li">0o</code>, <code class="Li">0O</code></td>
45+
<td>01234567</td>
46+
</tr>
47+
<tr id="_">
48+
<td>Binary</td>
49+
<td><a class="permalink" href="#_"><code class="Li">%</code></a>,
50+
<code class="Li">0b</code>, <code class="Li">0B</code></td>
51+
<td>01</td>
52+
</tr>
53+
</table>
54+
<p class="Pp">Underscores are also accepted in numbers, except at the beginning
55+
of one. This can be useful for grouping digits, like
56+
&#x2018;<code class="Li">1_234</code>&#x2019; or
57+
&#x2018;<code class="Li">$ff_80</code>&#x2019;.</p>
2758
<p class="Pp">Strings begin with a double quote, and end at the next
2859
(non-escaped) double quote. Strings must not contain literal newline
2960
characters. Most of the same character escapes as
3061
<a class="Xr" href="./rgbasm.5">rgbasm(5)</a> are supported, specifically
3162
&#x2018;<code class="Li">\\</code>&#x2019;,
3263
&#x2018;<code class="Li">\&quot;</code>&#x2019;,
3364
&#x2018;<code class="Li">\n</code>&#x2019;,
34-
&#x2018;<code class="Li">\r</code>&#x2019;, and
35-
&#x2018;<code class="Li">\t</code>&#x2019;. Other backslash escape sequences
65+
&#x2018;<code class="Li">\r</code>&#x2019;,
66+
&#x2018;<code class="Li">\t</code>&#x2019;, and
67+
&#x2018;<code class="Li">\0</code>&#x2019;. Other backslash escape sequences
3668
in <a class="Xr" href="./rgbasm.5">rgbasm(5)</a> are only relevant to
3769
assembly code and do not apply in linker scripts.</p>
3870
</section>

0 commit comments

Comments
 (0)