Skip to content

Commit 7490244

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 3b57f38 commit 7490244

11 files changed

Lines changed: 14 additions & 4 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: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,14 +892,24 @@ <h3 class="Ss" id="String_expressions"><a class="permalink" href="#String_expres
892892
<var class="Ar">char</var> <span class="No">with the current
893893
charmap.</span></td>
894894
</tr>
895+
<tr id="CHARVAL">
896+
<td><a class="permalink" href="#CHARVAL"><code class="Fn">CHARVAL</code></a>(<var class="Fa">char</var>,
897+
<var class="Fa">idx</var>)</td>
898+
<td>Returns the value at <var class="Ar">idx</var> <span class="No">of the
899+
charmap entry for</span> <var class="Ar">char</var>.</td>
900+
</tr>
895901
</table>
896-
<p class="Pp">Note that the first character of a string is at index 0, and the
897-
last is at index -1.</p>
902+
<p class="Pp">Note that indexes count starting from 0 at the beginning, or from
903+
-1 at the end. The characters of a string are counted by
904+
&#x2018;<code class="Li">STRLEN</code>&#x2019;; the charmap entries of a
905+
string are counted by &#x2018;<code class="Li">CHARLEN</code>&#x2019;; and
906+
the values of a charmap entry are counted by
907+
&#x2018;<code class="Li">CHARSIZE</code>&#x2019;.</p>
898908
<p class="Pp" id="position">The following legacy functions are similar to other
899909
functions that operate on string expressions, but for historical reasons,
900-
they count characters starting from
910+
they count starting from
901911
<a class="permalink" href="#position"><i class="Em">position 1</i></a>, not
902-
from index 0! (Position -1 still counts from the last character.)</p>
912+
from index 0! (Position -1 still counts from the end.)</p>
903913
<table class="Bl-column">
904914
<tr id="Name~5">
905915
<td><a class="permalink" href="#Name~5"><b class="Sy">Name</b></a></td>

docs/rgbasm.5.pdf

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