Skip to content

Commit

Permalink
add architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
leonmavr committed Aug 12, 2024
1 parent 99e1993 commit c45635e
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
```
▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒
▒▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒
▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
```
# 1. About

Expand Down Expand Up @@ -59,7 +52,44 @@ make clean
- [x] CI.
- [ ] Sound; probably never going to implement this.

# 4. Architecture
# 4. Architecture and implementation

### 4.1 Architecture

```
<--- Main memory --->
Read Registers
<- only -> Stack 0 1 15
+-----------+-------+ +-----------+ +--+ +--+ +--+
| | | | | | | | | | | | . . . | |
| Instr/s | Fonts | +-----------+ +--+ +--+ +--+
| | | 0x18 ^ ^
+-----------+-------+ ^ | |
0xFFF ^ 0x200 0x0 | 2 bytes 1 byte
| ^ |
| | |
Program ------+ | Delay Sound
start | | timer time
+-----------------------|------+ +---+ +---+
Program | Stack | | | | | |
counter | pointer | Index register +---+ +---+
(PC) | (SP) | (I) 1 byte 1 byte
+----+ | +----+ | +----+
| |----+ | |------+ | |
+----+ +----+ +----+
12 bits 1 byte 12 bits
Renderer
+----------------------+ ^
| | |
| | 32
| | |
+----------------------+ v
<-------- 64 ---------->
```


### 4.2 Implementation

**TODO**

Expand Down

0 comments on commit c45635e

Please sign in to comment.