Compare commits
2 Commits
49a87423b2
...
5b4ed329cc
| Author | SHA1 | Date |
|---|---|---|
|
|
5b4ed329cc | |
|
|
c2446b9b2d |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 236 KiB |
47
README.md
47
README.md
|
|
@ -12,7 +12,9 @@ It comes from "[Neo](https://en.wiktionary.org/wiki/neo-)", a prefix for "New",
|
|||
1. [Aims and challenges](#aims-and-challenges)
|
||||
2. [Design](#design)
|
||||
1. [Core architecture](#core-architecture)
|
||||
2. [Registers and memory map](#registers-and-memory-map)
|
||||
1. [ALU functions](#alu-functions)
|
||||
2. [Registers](#registers-and-memory-map)
|
||||
3. [Memory map](#memory-map)
|
||||
3. [The instruction set](#the-instruction-set)
|
||||
|
||||
## Aims and challenges
|
||||
|
|
@ -43,22 +45,47 @@ The design is inspired of great people hard work :
|
|||
|
||||
The core architecture is inspired of the legendary [Intel's MCS-51](/Documents/Datasheets/8051.PDF) [microcontroller series](https://en.wikipedia.org/wiki/Intel_MCS-51).
|
||||
|
||||
The computer is in 8 bits. The target frequency of the processor is 10mHz
|
||||
The computer is in 8 bits. The target frequency of the processor is 10mHz.
|
||||
|
||||
### Core architecture
|
||||
|
||||

|
||||
<sub>Made with [Drawio](https://www.drawio.com/).</sub>
|
||||
|
||||
### Registers and memory map
|
||||
#### ALU functions
|
||||
|
||||
###### Logic Functions
|
||||
|
||||
| Func | Description |
|
||||
| :----: | :------------- |
|
||||
| !A | Not A. |
|
||||
| !B | Not B. |
|
||||
| A+B | A or B. |
|
||||
| AB | A and B. |
|
||||
| A^B | A xor B. |
|
||||
| !(A+B) | Not (A or B). |
|
||||
| !(AB) | Not (A and B). |
|
||||
| !(A^B) | Not (A xor B). |
|
||||
|
||||
###### Arithmetic Functions
|
||||
|
||||
| Func | Description |
|
||||
| :----: | :---------- :
|
||||
| A+1 |
|
||||
| A-1 |
|
||||
| A+B |
|
||||
| A-B |
|
||||
|
||||
#### Registers
|
||||
|
||||
| Name | Long Name | Description |
|
||||
| :--: | :---------------------- | :--------------------------- |
|
||||
| IR | Instruction Register | Running instruction storage. |
|
||||
| A | A Register | ALU first input register. |
|
||||
| B | B Register | ALU second input register. |
|
||||
| PSW | Program Status Word | Status flags. |
|
||||
| MAR | Memory Address Register | RAM heap access address. |
|
||||
| Acc | Accumulator Register | ALU output register. |
|
||||
| TMP1 | Temp 1 Register | ALU first input register. |
|
||||
| TMP2 | Temp 2 Register | ALU second input register. |
|
||||
| PSW | Program Status Word | Status flags. |
|
||||
| MAR | Memory Address Register | RAM heap access address. |
|
||||
| SP | Stack pointer | RAM stack access pointer. |
|
||||
|
||||
###### PSW Structure
|
||||
|
|
@ -74,6 +101,12 @@ The computer is in 8 bits. The target frequency of the processor is 10mHz
|
|||
| 6 | | | |
|
||||
| 7 | | | |
|
||||
|
||||
#### Memory map
|
||||
|
||||
| Address | Mapping |
|
||||
| :-----: | :------ |
|
||||
| 0x00 |
|
||||
|
||||
### The instruction set
|
||||
|
||||
Every instruction is 1 to 3 bytes long.
|
||||
|
|
|
|||
Loading…
Reference in New Issue