Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beng49/cpu
Circuit simulator of Ben Eater's 8 bit CPU
https://github.com/beng49/cpu
Last synced: about 1 month ago
JSON representation
Circuit simulator of Ben Eater's 8 bit CPU
- Host: GitHub
- URL: https://github.com/beng49/cpu
- Owner: BenG49
- License: mit
- Created: 2021-12-11T20:40:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T22:13:23.000Z (3 months ago)
- Last Synced: 2024-11-04T23:20:08.022Z (3 months ago)
- Language: Python
- Size: 2.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpu
Digital logic simulation of [Ben Eater's 8-bit CPU](https://eater.net/8bit).Using https://github.com/hneemann/Digital logic simulator and https://github.com/hlorenzi/customasm assembler.
# Modifications
- 4 bit -> 8 bit addresses
- 8 bit opcodes (instructions with arguments spread over 2 bytes)
- Add a stack
- Add a stack pointer up/down counter (starts at 0xFF)
- Add PHA/PLA instructions
- Add CALL instruction (clobbers A register)
- Add RET instruction (jumps to address at stack pointer in memory)
- Extend instruction set
- Add imm for LDA, ADD, SUB![picture of circuit](https://github.com/BenG49/cpu/blob/main/cpu.png?raw=true)