blob: d8621141dab52b6874cee6bfe0a62621c7732bf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 16-bit CPU design doc
## Features
16-bit data
16-bit address width
16-bit instruction width
16-bit control word
Minimal instruction set computer (MISC)
4-bit opcodes
Memory mapped I/O
instruction format
xxxx xxxx xxxx xxxx - xxxx xxxx xxxx xxxx
General purpose registers:
RA (0) .. RH (7)
Expansion port that connects directly to the main bus
Default addressing mode: indirect absolute (addresses are stored in registers and point to a complete address). Some instructions use PC-relative addressing.
## Operations
TODO rewrite bit about operations
ALU flags:
- C = carry bit
- O = overflow bit
- Z = zero bit
- S = sign bit
Interrupt lines: ???
|