-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb6f1bd
commit 007f0b0
Showing
7 changed files
with
678 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<h3 class="text-lg font-bold mb-4">Comment Syntax</h3> | ||
|
||
<div class="mb-4"> | ||
<p class="text-gray-600 dark:text-gray-200 mb-2"> | ||
Comments always start with the semicolon character <code class="text-gray-600 bg-gray-100 rounded px-1">;</code>. | ||
Everything after this character on the same line is ignored by the assembler. | ||
</p> | ||
<pre class="bg-gray-100 dark:bg-gray-900 p-2 rounded-md overflow-auto"><code class="block"><span class="label">LABEL:</span> <span class="inst">MVI</span> <span class="register">A</span>, <span class="number">0AH</span><span class="comment">; LOAD 0AH INTO REGISTER A</span></code></pre> | ||
<p class="mb-2"> | ||
Comments always start with the semicolon character | ||
<code class="text-gray-600 bg-gray-100 rounded px-1">;</code>. Everything after this character on the same line | ||
is ignored by the assembler. | ||
</p> | ||
<pre | ||
class="bg-gray-100 dark:bg-gray-900 p-2 rounded-md overflow-auto" | ||
><code class="block"><span class="label">LABEL:</span> <span class="inst">MVI</span> <span class="register">A</span>, <span class="number">0AH</span><span class="comment">; LOAD 0AH INTO REGISTER A</span></code></pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<h3 class="text-lg font-bold mb-4">Label Syntax</h3> | ||
|
||
<div class="mb-4 text-sm line leading-6"> | ||
<p class="text-gray-600 dark:text-gray-200 mb-2"> | ||
Labels must consist of one to six alphanumeric characters, with the first character being either alphabetic or one of the special characters <code class="text-gray-600 bg-gray-100 rounded px-1">?</code> or <code class="text-gray-600 bg-gray-100 rounded px-1">@</code>. Each label must be followed by a colon <code class="text-gray-600 bg-gray-100 rounded px-1">:</code> to indicate that it is a label. There should be <span class="font-bold">no space</span> between the word and the <code class="text-gray-600 bg-gray-100 rounded px-1">:</code> character. Additionally, a label can only be defined once in the program, and it must be unique. | ||
</p> | ||
<pre class="bg-gray-100 dark:bg-gray-900 p-2 rounded-md overflow-auto"><code class="block"><span class="label">LABEL:</span> <span class="inst">MVI</span> <span class="register">A</span>, <span class="number">0AH</span><span class="comment">; LOAD 0AH INTO REGISTER A</span></code></pre> | ||
<p class="mb-2"> | ||
Labels must consist of one to six alphanumeric characters, with the first character being either alphabetic or | ||
one of the special characters <code class="text-gray-600 bg-gray-100 rounded px-1">?</code> or | ||
<code class="text-gray-600 bg-gray-100 rounded px-1">@</code>. Each label must be followed by a colon | ||
<code class="text-gray-600 bg-gray-100 rounded px-1">:</code> to indicate that it is a label. There should be | ||
<span class="font-bold">no space</span> between the word and the | ||
<code class="text-gray-600 bg-gray-100 rounded px-1">:</code> character. Additionally, a label can only be | ||
defined once in the program, and it must be unique. | ||
</p> | ||
<pre | ||
class="bg-gray-100 dark:bg-gray-900 p-2 rounded-md overflow-auto" | ||
><code class="block"><span class="label">LABEL:</span> <span class="inst">MVI</span> <span class="register">A</span>, <span class="number">0AH</span><span class="comment">; LOAD 0AH INTO REGISTER A</span></code></pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.