Skip to content

Commit e4e6e84

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 01d96ca commit e4e6e84

11 files changed

Lines changed: 12 additions & 5 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.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ <h3 class="Ss" id="Numeric_formats"><a class="permalink" href="#Numeric_formats"
313313
<tr>
314314
<td>Character constant</td>
315315
<td>none</td>
316-
<td>&quot;ABYZ&quot;</td>
316+
<td>'ABYZ'</td>
317317
</tr>
318318
<tr>
319319
<td>Game Boy graphics</td>
@@ -328,9 +328,12 @@ <h3 class="Ss" id="Numeric_formats"><a class="permalink" href="#Numeric_formats"
328328
<p class="Pp">The &quot;character constant&quot; form yields the value the
329329
character maps to in the current charmap. For example, by default (refer to
330330
<a class="Xr" href="https://man7.org/linux/man-pages/man7/ascii.7.html">ascii(7)</a>)
331-
&#x2018;&quot;A&quot;&#x2019; yields 65. See
332-
<a class="Sx" href="#Character_maps">Character maps</a> for information on
333-
charmaps.</p>
331+
&#x2018;'A'&#x2019; yields 65. A character constant must represent a single
332+
value, so it cannot include multiple characters, or characters which map to
333+
multiple values. See <a class="Sx" href="#Character_maps">Character maps</a>
334+
for information on charmaps, and
335+
<a class="Sx" href="#String_expressions">String expressions</a> for
336+
information on escape characters allowed in character constants.</p>
334337
<p class="Pp">The last one, Game Boy graphics, is quite interesting and useful.
335338
After the backtick, 8 digits between 0 and 3 are expected, corresponding to
336339
pixel values. The resulting value is the two bytes of tile data that would
@@ -711,7 +714,11 @@ <h3 class="Ss" id="String_expressions"><a class="permalink" href="#String_expres
711714
</tr>
712715
<tr>
713716
<td>&#x2018;<code class="Li">\&quot;</code>&#x2019;</td>
714-
<td>Double quote (does not terminate the string)</td>
717+
<td>Double quote (does not terminate a string)</td>
718+
</tr>
719+
<tr>
720+
<td>&#x2018;<code class="Li">\'</code>&#x2019;</td>
721+
<td>Single quote (does not terminate a character literal)</td>
715722
</tr>
716723
<tr>
717724
<td>&#x2018;<code class="Li">\{</code>&#x2019;</td>

docs/rgbasm.5.pdf

310 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)