2024-01-31 19:56:47 +00:00
|
|
|
# Yet another yet another Chip-8 emulator (yayacemu)
|
2024-01-31 01:54:35 +00:00
|
|
|
|
|
|
|
[Because one just wasn't enough](https://github.com/nickorlow/yacemu).
|
|
|
|
|
|
|
|
A Chip-8 emulator (interpreter) written in SystemVerilog with I/O simulated with C++ also depends on SDL2.
|
|
|
|
|
|
|
|
### Building & Testing
|
|
|
|
|
|
|
|
In order to run yayacemu, you must have sdl2, verilator, and make installed.
|
|
|
|
|
|
|
|
Once you have the dependencies installed, you can build the emulator with:
|
|
|
|
```shell
|
|
|
|
make build
|
|
|
|
```
|
|
|
|
|
|
|
|
You can build start the emulator with:
|
|
|
|
```shell
|
|
|
|
make run ROM_FILE=[PATH_TO_YOUR_ROM]
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Running
|
|
|
|
|
|
|
|
If you have a binary, you can run it with the following:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
yayacemu [PATH_TO_YOUR_ROM]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Todo
|
|
|
|
- [x] Graphics
|
2024-01-31 17:05:25 +00:00
|
|
|
- [x] Corax+ Required Instructions
|
2024-01-31 18:05:04 +00:00
|
|
|
- [x] Proper Flag Handling
|
2024-01-31 19:09:58 +00:00
|
|
|
- [x] Working Input
|
|
|
|
- [x] More Instructions
|
|
|
|
- [x] Tetris Working Running
|
|
|
|
- [x] Pass Quirks Test
|
2024-01-31 19:53:10 +00:00
|
|
|
- [x] Add beeper (instead of sound, screen becomes red)
|
|
|
|
- [x] Add all Instructions
|
|
|
|
- [x] Implement a real (synthesizeable, pseudorandom) random module
|
2024-02-01 03:06:06 +00:00
|
|
|
- [x] Code cleanup
|
|
|
|
- [ ] Deploying to an FPGA with a real screen, keypad, and beeper
|
2024-01-31 01:54:35 +00:00
|
|
|
|
|
|
|
### Screenshots
|
|
|
|
|
2024-04-08 06:34:21 +00:00
|
|
|
![Chip 8 Logo Demo on an FPGA!](https://github.com/nickorlow/yayacemu/blob/main/screenshots/chip8_fpga.jpg?raw=true)
|
2024-01-31 01:54:35 +00:00
|
|
|
![Chip 8 Logo Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/chip8-logo.png?raw=true)
|
|
|
|
![IBM Logo Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/ibm-logo.png?raw=true)
|
2024-01-31 17:04:55 +00:00
|
|
|
![CORAX+ Test Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/corax.png?raw=true)
|
2024-01-31 18:05:04 +00:00
|
|
|
![Flag Test Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/flags.png?raw=true)
|
2024-01-31 19:09:58 +00:00
|
|
|
![Quirk Test Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/quirks.png?raw=true)
|
|
|
|
![Tetris Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/tetris.png?raw=true)
|
2024-01-31 19:53:10 +00:00
|
|
|
![Beeper Demo](https://github.com/nickorlow/yayacemu/blob/main/screenshots/beeper.png?raw=true)
|