Skip to content

Commit 08b7137

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 23c407c commit 08b7137

12 files changed

Lines changed: 27 additions & 0 deletions

docs/gbz80.7.pdf

0 Bytes
Binary file not shown.

docs/rgbasm-old.5.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,28 @@ <h3 class="Ss" id="Trigonometry_function_units"><a class="permalink" href="#Trig
380380
</ul>
381381
</section>
382382
<section class="Ss">
383+
<h3 class="Ss" id="__operator_behavior_with_negative_dividend_or_divisor"><a class="permalink" href="#__operator_behavior_with_negative_dividend_or_divisor">%
384+
operator behavior with negative dividend or divisor</a></h3>
385+
<p class="Pp">Changed in 0.5.0.</p>
386+
<p class="Pp">Instead of having the same sign as the dividend (a remainder
387+
operation), &#x2018;<code class="Li">%</code>&#x2019; has the same sign as
388+
the divisor (a modulo operation).</p>
389+
<p class="Pp">For example, previously we had:</p>
390+
<ul class="Bl-bullet Bd-indent">
391+
<li>&#x2018;<code class="Li">13 % 10 == 3</code>&#x2019;</li>
392+
<li>&#x2018;<code class="Li">-13 % 10 == -3</code>&#x2019;</li>
393+
<li>&#x2018;<code class="Li">13 % -10 == 3</code>&#x2019;</li>
394+
<li>&#x2018;<code class="Li">-13 % -10 == -3</code>&#x2019;</li>
395+
</ul>
396+
<p class="Pp">Instead, now we have:</p>
397+
<ul class="Bl-bullet Bd-indent">
398+
<li>&#x2018;<code class="Li">13 % 10 == 3</code>&#x2019;</li>
399+
<li>&#x2018;<code class="Li">-13 % 10 == 7</code>&#x2019;</li>
400+
<li>&#x2018;<code class="Li">13 % -10 == -7</code>&#x2019;</li>
401+
<li>&#x2018;<code class="Li">-13 % -10 == -3</code>&#x2019;</li>
402+
</ul>
403+
</section>
404+
<section class="Ss">
383405
<h3 class="Ss" id="**_operator_associativity"><a class="permalink" href="#**_operator_associativity">**
384406
operator associativity</a></h3>
385407
<p class="Pp">Changed in 0.9.0.</p>

docs/rgbasm-old.5.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ export const toc = [
175175
"id": "Trigonometry_function_units",
176176
"level": 3,
177177
},
178+
{
179+
"value": "% operator behavior with negative dividend or divisor",
180+
"id": "__operator_behavior_with_negative_dividend_or_divisor",
181+
"level": 3,
182+
},
178183
{
179184
"value": "** operator associativity",
180185
"id": "**_operator_associativity",

docs/rgbasm-old.5.pdf

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

0 commit comments

Comments
 (0)