Skip to content

Commit

Permalink
add optimisation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWoollett-Light committed Nov 24, 2023
1 parent 13a5217 commit 74d5508
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ <h3>Examples</h3>
<div><p class="code">exit 2</p></div>
<div><p class="code">.global _start<br>_start:<br>mov x8, #93<br>mov x0, #2<br>svc #0</p></div>
</div>
<div class="grid">
<div><p class="code">x := 1<br>if x = 2<br> exit 1<br>exit 0</p></div>
<div><p class="code">exit 0</p></div>
<div><p class="code">.global _start<br>_start:<br>mov x8, #93<br>mov x0, #0<br>svc #0</p></div>
</div>
<div class="grid">
<div><p class="code">x := 2<br>if x = 2<br> exit 1<br>exit 0</p></div>
<div><p class="code">exit 1</p></div>
<div><p class="code">.global _start<br>_start:<br>mov x8, #93<br>mov x0, #1<br>svc #0</p></div>
</div>
</main>
</body>
</html>

0 comments on commit 74d5508

Please sign in to comment.