Updated info about PC and SP
This commit is contained in:
parent
88d7380ce0
commit
67c4300bf2
28
index.html
28
index.html
|
@ -219,22 +219,22 @@
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h1 class="title">ocpu</h1>
|
<h1 class="title">ocpu</h1>
|
||||||
|
|
||||||
<div id="outline-container-orgdcd96e7" class="outline-2">
|
<div id="outline-container-orgb6c9bdb" class="outline-2">
|
||||||
<h2 id="orgdcd96e7">GRU ocpu - yet another cpu design</h2>
|
<h2 id="orgb6c9bdb">GRU ocpu - yet another cpu design</h2>
|
||||||
<div class="outline-text-2" id="text-orgdcd96e7">
|
<div class="outline-text-2" id="text-orgb6c9bdb">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org20ded73" class="outline-3">
|
<div id="outline-container-org322da6e" class="outline-3">
|
||||||
<h3 id="org20ded73">Features</h3>
|
<h3 id="org322da6e">Features</h3>
|
||||||
<div class="outline-text-3" id="text-org20ded73">
|
<div class="outline-text-3" id="text-org322da6e">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li>little endian</li>
|
<li>little endian</li>
|
||||||
<li>16-bit</li>
|
<li>16-bit</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgf5252a1" class="outline-3">
|
<div id="outline-container-org6512b34" class="outline-3">
|
||||||
<h3 id="orgf5252a1">Registers</h3>
|
<h3 id="org6512b34">Registers</h3>
|
||||||
<div class="outline-text-3" id="text-orgf5252a1">
|
<div class="outline-text-3" id="text-org6512b34">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
|
@ -382,14 +382,14 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="org-left">PC</td>
|
<td class="org-left">PC</td>
|
||||||
<td class="org-left">Pointer</td>
|
<td class="org-left">Pointer</td>
|
||||||
<td class="org-left">Program Counter</td>
|
<td class="org-left">Program Counter, 16-bit</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="org-left">SP</td>
|
<td class="org-left">SP</td>
|
||||||
<td class="org-left">Poiner</td>
|
<td class="org-left">Poiner</td>
|
||||||
<td class="org-left">Stack Pointer</td>
|
<td class="org-left">Stack Pointer, 16-bit</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -430,9 +430,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5875bf1" class="outline-3">
|
<div id="outline-container-org7bf76e7" class="outline-3">
|
||||||
<h3 id="org5875bf1">Instuctions</h3>
|
<h3 id="org7bf76e7">Instuctions</h3>
|
||||||
<div class="outline-text-3" id="text-org5875bf1">
|
<div class="outline-text-3" id="text-org7bf76e7">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
|
|
54
ocpu.org
54
ocpu.org
|
@ -9,56 +9,56 @@
|
||||||
- 16-bit
|
- 16-bit
|
||||||
** Registers
|
** Registers
|
||||||
|
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| Register | Category | Description |
|
| Register | Category | Description |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| AL | General | 0xA0, 8-bit |
|
| AL | General | 0xA0, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| AH | General | 0xA1, 8-bit |
|
| AH | General | 0xA1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| A | General | 0xAA, 16-bit |
|
| A | General | 0xAA, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| BL | General | 0xB0, 8-bit |
|
| BL | General | 0xB0, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| BH | General | 0xB1, 8-bit |
|
| BH | General | 0xB1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| B | General | 0xBB, 16-bit |
|
| B | General | 0xBB, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| CL | General | 0xC0, 8-bit |
|
| CL | General | 0xC0, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| CH | General | 0xC1, 8-bit |
|
| CH | General | 0xC1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| C | General | 0xCC, 16-bit |
|
| C | General | 0xCC, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| DL | | 0xD0, 8-bit 4 |
|
| DL | | 0xD0, 8-bit 4 |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| DH | | 0xD1, 8-bit |
|
| DH | | 0xD1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| D | | 0xDD, 16-bit |
|
| D | | 0xDD, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| EL | | 0xE0, 8-bit |
|
| EL | | 0xE0, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| EH | | 0xE1, 8-bit |
|
| EH | | 0xE1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| E | | 0xEE, 16-bit |
|
| E | | 0xEE, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| FL | | 0xF0, 8-bit |
|
| FL | | 0xF0, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| FH | | 0xF1, 8-bit |
|
| FH | | 0xF1, 8-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| F | | 0xFF, 16-bit |
|
| F | | 0xFF, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| PC | Pointer | Program Counter |
|
| PC | Pointer | Program Counter, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| SP | Poiner | Stack Pointer |
|
| SP | Poiner | Stack Pointer, 16-bit |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| ZF | Flag | Zero Flag |
|
| ZF | Flag | Zero Flag |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| NF | Flag | Negative Flag |
|
| NF | Flag | Negative Flag |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| CF | Flag | Carry Flag |
|
| CF | Flag | Carry Flag |
|
||||||
| | | |
|
| | | |
|
||||||
|----------+----------+-----------------|
|
|----------+----------+-------------------------|
|
||||||
| OF | Flag | Overflow Flag |
|
| OF | Flag | Overflow Flag |
|
||||||
|
|
||||||
** Instuctions
|
** Instuctions
|
||||||
|
|
Loading…
Reference in New Issue