https://github.com/pegvin/chip-8
a chip-8 emulator written in C
https://github.com/pegvin/chip-8
chip-8 chip-8-emulator
Last synced: 7 months ago
JSON representation
a chip-8 emulator written in C
- Host: GitHub
- URL: https://github.com/pegvin/chip-8
- Owner: pegvin
- License: bsd-3-clause
- Created: 2024-02-16T20:43:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T20:46:58.000Z (over 2 years ago)
- Last Synced: 2024-12-27T21:14:14.481Z (over 1 year ago)
- Topics: chip-8, chip-8-emulator
- Language: C
- Homepage:
- Size: 1.71 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CHIP-8
A Chip-8 Emulator Written In C
---
## About
this is my first step into low-level stuff, i look forward on building more emulators & once i have some money i want to build a small computer with a 6502 or a z80.
chip-8 is kinda like a "specification" which decribes how a chip-8 machine should work, i am not aware of any "true" chip-8 cpu but it's quite easy to build a emulator of.
---
## Accuracy
i tried to make the emulator as accurate as possible and for that i used [chip-8 test suite](https://github.com/Timendus/chip8-test-suite), which provides many roms to test various things like opcodes, flags etc.
---
## Keymap
i'm using this keymap:
```
CHIP-8 My Keyboard
_______________ _______________
| 1 | 2 | 3 | C | | 1 | 2 | 3 | 4 |
|---|---|---|---| |---|---|---|---|
| 4 | 5 | 6 | D | | Q | W | E | R |
|---|---|---|---| --> |---|---|---|---|
| 7 | 8 | 9 | E | | A | S | D | F |
|---|---|---|---| |---|---|---|---|
| A | 0 | B | F | | Z | X | C | V |
\---------------/ \---------------/
```
---
## Building
make sure you have GNU Make, GCC/Clang & SDL2 Installed, then clone the repo
```
make all -j4
```
you will have a executable named `chip-8`, run the executable and pass a path to a rom...
---
# Thanks