https://github.com/rofl0r/chip9
chip9 emulator in C + SDL
https://github.com/rofl0r/chip9
Last synced: over 1 year ago
JSON representation
chip9 emulator in C + SDL
- Host: GitHub
- URL: https://github.com/rofl0r/chip9
- Owner: rofl0r
- Created: 2019-12-20T22:17:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-20T22:24:48.000Z (over 6 years ago)
- Last Synced: 2025-04-11T05:52:17.276Z (over 1 year ago)
- Language: C
- Size: 236 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
chip9 emulator
==============
about
-----
emulator for the imaginary CHIP9 cpu architecture, described in the pdf.
written in C for good speed.
includes disassembler, fast 8bit SDL rendering.
bugs
----
this emulator assumes little endian CPU.
the addx command probably doesn't set the flag register as expected.
it was almost impossible to figure out the semantics for 16 bit store.
i ended up copying some macros from gnubuy (targetting Z80 cpu), but
even that didn't work, so i patched the bootrom to skip the problematic
code (was basically only a dumb loop to slow down the emulator).
the app rom also needed a patch because when its execution starts, the
N flag isn't set as expected.