News for hackers. Stuff that matters.
Re:Emulating the Original Gameboy’s CPU by Andrex on Friday December 27, 2019 @11:42AM (#21892303)
I'm interested in writing my own GB emulator mostly because sound is so patchy across all existing JavaScript implementations.

My entrance into the GB scene coincided with my interest in LSDJ, and I really want to write a web app around it[1], but I'm stymied by outdated implementations and my own lack of domain knowledge.

[1] https://github.com/andrewrabon/little-web-dj

^ Still unfinished. My own emulator will probably have to come first.

Re:Emulating the Original Gameboy’s CPU by simias on Friday December 27, 2019 @02:02PM (#21893490)
The most thorough reference I've found for the Game Boy SPU is unfortunately the Gambatte source code itself since it's a fairly accurate emulator and open source. Unfortunately it's also not the most human-readable code (due to micro-optimizations and lack of comments, plus it's C++ which is already a -10 handicap in readability).

In the meantime you can try to dig around my code which is not nearly as accurate but (hopefully) should be easier to understand: https://github.com/simias/gaembuoy/blob/master/spu.c

It seems to work fine with all games I've tested, although of course that's only a tiny subset of the console's library...