Skip to content

Commit

Permalink
Add machine cycle information.
Browse files Browse the repository at this point in the history
  • Loading branch information
ei9 committed Mar 21, 2021
1 parent ee23a2a commit 3709d63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This is a simple Von Neumann architecture cpu. It includes:

- 5 instructions.

| Instruction | Opcode | Meaning | Example |
| :----: | :----: | :---- | :---- |
| LDA | 0000 | Load the accumulator | LDA 9H |
| ADD | 0001 | Add to the accumulator | ADD AH |
| SUB | 0010 | Accumulator subtracts a number | SUB CH |
| OUT | 1110 | Accumulator to the output port | OUT |
| HLT | 1111 | Stop cpu clock | HLT |
| Instruction | Opcode | Meaning | Example | Machine cycle |
| :----: | :----: | :---- | :---- | :----: |
| LDA | 0000 | Load the accumulator | LDA 9H | 5T |
| ADD | 0001 | Add to the accumulator | ADD AH | 6T |
| SUB | 0010 | Accumulator subtracts a number | SUB CH | 6T |
| OUT | 1110 | Accumulator to the output port | OUT | 4T |
| HLT | 1111 | Stop cpu clock | HLT | 3T |

- 16 x 8 RAM (16 Bytes). That means you can only write 16 lines of codes.

Expand Down

0 comments on commit 3709d63

Please sign in to comment.