Re:Cowgod's Chip-8 Technical Reference
by nlkl on Monday September 05, 2022 @11:58AM
(#32725766)
I 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
There are a lot of other useful references and tools worth mentioning, depending on how much hand-holding you want when implementing the 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).
Re:Cowgod's Chip-8 Technical Reference
by riverg on Monday September 05, 2022 @12:55PM
(#32726425)
Wow, 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/
Re:Cowgod's Chip-8 Technical Reference
by wlindley on Monday September 05, 2022 @12:02PM
(#32725826)
The VIPER newsletter for RCA VIP owners has quite a bit of the early CHIP-8 lore: https://github.com/mattmikolay/viper/ -- I wrote the "CHIP-8 Editor" in v4#1 and the "CHIP-8 Assember in BASIC" in Volume 6 issue 1.
Re:Cowgod's Chip-8 Technical Reference
by RodgerTheGreat on Monday September 05, 2022 @12:54PM
(#32726412)
It might be worth noting that there's still an active community writing new software for CHIP-8 (and its descendants) today. This October will be the ninth annual CHIP-8 game jam. It's a fun way to celebrate computing history and scratch that low-level programming itch: http://octojam.com
Re:Cowgod's Chip-8 Technical Reference
by 63 on Monday September 05, 2022 @02:17PM
(#32727402)
I just used this reference to make my chip-8 python interpreter a few months back. As others have said, there are some ambiguities that caused a few headaches for me. Add to that some broken roms, and the process ended up a lot harder than it needed to be.
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
There are a lot of other useful references and tools worth mentioning, depending on how much hand-holding you want when implementing the 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).There's a gallery of previous submissions available here: https://johnearnest.github.io/chip8Archive/
(You can do things like "ld a, (ix+3)", etc. I used those a lot when I recently wrote a text-based adventure game in Z80.)
and in particular, how each operand is implemented:
https://github.com/cbeust/chip-8/blob/master/src/main/kotlin...
https://github.com/dreary-dugong/emu8