5 ms·
For anyone looking to write a CHIP-8 emulator, Matt Mikolay's writeup is less ambiguous: https://github.com/mattmikolay/chip-8/wiki/CHIP%E2%80%908-Technical-Re
by pushfoo 4y ago
For anyone looking to write a CHIP-8 emulator, Matt Mikolay's writeup is less ambiguous:
https://github.com/mattmikolay/chip-8/wiki/CHIP%E2%80%908-Technical-Reference https://github.com/mattmikolay/chip-8/wiki/CHIP%E2%80%908-Te...
If you want to target the original Cosmac VIP behavior, corax89's test ROM is good:
https://github.com/corax89/chip8-test-rom https://github.com/corax89/chip8-test-rom
- nlkl 4y agoI can recommend Timendus test suite (which includes the one mentioned as well), as a more thorough set of tests and verification utilities: https://github.com/Timendus/chip8-test-suite https://github.com/Timendus/chip8-test-suite There are a lot of other useful references and tools worth mentioning, depending on how much hand-holding you want when implementing the emulator: - http://johnearnest.github.io/Octo/ - https://laurencescotford.com/chip-8-on-the-cosmac-vip-index/ - https://tobiasvl.github.io/blog/write-a-chip-8-emulator/ Additionally, note that there are lot of variants of the instruction set / system-specific quirks, which you probably don't want to entirely ignore in an implementation. In particular, the Cowgod's reference doesn't cover this fully (Matt Mikolay's is more thorough, but doesn't cover everything either).
- riverg 4y agoWow, wish I had seen Matt's writeup! I found Cowgod's guide to be ambiguous in several places (BCD and sprite loading especially) when I documented my emulator https://riv.dev/emulating-a-computer-part-1/ https://riv.dev/emulating-a-computer-part-1/