Updated info about PC and SP

This commit is contained in:
g1n 2021-10-19 21:07:09 +03:00
parent 88d7380ce0
commit 67c4300bf2
2 changed files with 65 additions and 65 deletions

View File

@ -219,22 +219,22 @@
<div id="content">
<h1 class="title">ocpu</h1>
<div id="outline-container-orgdcd96e7" class="outline-2">
<h2 id="orgdcd96e7">GRU ocpu - yet another cpu design</h2>
<div class="outline-text-2" id="text-orgdcd96e7">
<div id="outline-container-orgb6c9bdb" class="outline-2">
<h2 id="orgb6c9bdb">GRU ocpu - yet another cpu design</h2>
<div class="outline-text-2" id="text-orgb6c9bdb">
</div>
<div id="outline-container-org20ded73" class="outline-3">
<h3 id="org20ded73">Features</h3>
<div class="outline-text-3" id="text-org20ded73">
<div id="outline-container-org322da6e" class="outline-3">
<h3 id="org322da6e">Features</h3>
<div class="outline-text-3" id="text-org322da6e">
<ul class="org-ul">
<li>little endian</li>
<li>16-bit</li>
</ul>
</div>
</div>
<div id="outline-container-orgf5252a1" class="outline-3">
<h3 id="orgf5252a1">Registers</h3>
<div class="outline-text-3" id="text-orgf5252a1">
<div id="outline-container-org6512b34" class="outline-3">
<h3 id="org6512b34">Registers</h3>
<div class="outline-text-3" id="text-org6512b34">
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
@ -382,14 +382,14 @@
<tr>
<td class="org-left">PC</td>
<td class="org-left">Pointer</td>
<td class="org-left">Program Counter</td>
<td class="org-left">Program Counter, 16-bit</td>
</tr>
</tbody>
<tbody>
<tr>
<td class="org-left">SP</td>
<td class="org-left">Poiner</td>
<td class="org-left">Stack Pointer</td>
<td class="org-left">Stack Pointer, 16-bit</td>
</tr>
</tbody>
<tbody>
@ -430,9 +430,9 @@
</div>
</div>
<div id="outline-container-org5875bf1" class="outline-3">
<h3 id="org5875bf1">Instuctions</h3>
<div class="outline-text-3" id="text-org5875bf1">
<div id="outline-container-org7bf76e7" class="outline-3">
<h3 id="org7bf76e7">Instuctions</h3>
<div class="outline-text-3" id="text-org7bf76e7">
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">

102
ocpu.org
View File

@ -9,57 +9,57 @@
- 16-bit
** Registers
|----------+----------+-----------------|
| Register | Category | Description |
|----------+----------+-----------------|
| AL | General | 0xA0, 8-bit |
|----------+----------+-----------------|
| AH | General | 0xA1, 8-bit |
|----------+----------+-----------------|
| A | General | 0xAA, 16-bit |
|----------+----------+-----------------|
| BL | General | 0xB0, 8-bit |
|----------+----------+-----------------|
| BH | General | 0xB1, 8-bit |
|----------+----------+-----------------|
| B | General | 0xBB, 16-bit |
|----------+----------+-----------------|
| CL | General | 0xC0, 8-bit |
|----------+----------+-----------------|
| CH | General | 0xC1, 8-bit |
|----------+----------+-----------------|
| C | General | 0xCC, 16-bit |
|----------+----------+-----------------|
| DL | | 0xD0, 8-bit 4 |
|----------+----------+-----------------|
| DH | | 0xD1, 8-bit |
|----------+----------+-----------------|
| D | | 0xDD, 16-bit |
|----------+----------+-----------------|
| EL | | 0xE0, 8-bit |
|----------+----------+-----------------|
| EH | | 0xE1, 8-bit |
|----------+----------+-----------------|
| E | | 0xEE, 16-bit |
|----------+----------+-----------------|
| FL | | 0xF0, 8-bit |
|----------+----------+-----------------|
| FH | | 0xF1, 8-bit |
|----------+----------+-----------------|
| F | | 0xFF, 16-bit |
|----------+----------+-----------------|
| PC | Pointer | Program Counter |
|----------+----------+-----------------|
| SP | Poiner | Stack Pointer |
|----------+----------+-----------------|
| ZF | Flag | Zero Flag |
|----------+----------+-----------------|
| NF | Flag | Negative Flag |
|----------+----------+-----------------|
| CF | Flag | Carry Flag |
| | | |
|----------+----------+-----------------|
| OF | Flag | Overflow Flag |
|----------+----------+-------------------------|
| Register | Category | Description |
|----------+----------+-------------------------|
| AL | General | 0xA0, 8-bit |
|----------+----------+-------------------------|
| AH | General | 0xA1, 8-bit |
|----------+----------+-------------------------|
| A | General | 0xAA, 16-bit |
|----------+----------+-------------------------|
| BL | General | 0xB0, 8-bit |
|----------+----------+-------------------------|
| BH | General | 0xB1, 8-bit |
|----------+----------+-------------------------|
| B | General | 0xBB, 16-bit |
|----------+----------+-------------------------|
| CL | General | 0xC0, 8-bit |
|----------+----------+-------------------------|
| CH | General | 0xC1, 8-bit |
|----------+----------+-------------------------|
| C | General | 0xCC, 16-bit |
|----------+----------+-------------------------|
| DL | | 0xD0, 8-bit 4 |
|----------+----------+-------------------------|
| DH | | 0xD1, 8-bit |
|----------+----------+-------------------------|
| D | | 0xDD, 16-bit |
|----------+----------+-------------------------|
| EL | | 0xE0, 8-bit |
|----------+----------+-------------------------|
| EH | | 0xE1, 8-bit |
|----------+----------+-------------------------|
| E | | 0xEE, 16-bit |
|----------+----------+-------------------------|
| FL | | 0xF0, 8-bit |
|----------+----------+-------------------------|
| FH | | 0xF1, 8-bit |
|----------+----------+-------------------------|
| F | | 0xFF, 16-bit |
|----------+----------+-------------------------|
| PC | Pointer | Program Counter, 16-bit |
|----------+----------+-------------------------|
| SP | Poiner | Stack Pointer, 16-bit |
|----------+----------+-------------------------|
| ZF | Flag | Zero Flag |
|----------+----------+-------------------------|
| NF | Flag | Negative Flag |
|----------+----------+-------------------------|
| CF | Flag | Carry Flag |
| | | |
|----------+----------+-------------------------|
| OF | Flag | Overflow Flag |
** Instuctions