Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by gf263 on Thursday November 22, 2018 @06:44PM
(#18513336)
How would someone begin to work on something like this?
[ Parent
| on HN ]
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by jchw on Thursday November 22, 2018 @06:50PM
(#18513366)
My recommendation is to start with the CPU emulation. The CPU in the Gameboy has decent documentation and there are plenty of implementations to look at if you're stumped. (One I like particular is the core in Higan, a multisystem emulator written in C++.)
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by voltagex_ on Thursday November 22, 2018 @08:16PM
(#18513702)
I remember seeing some people recommend starting with the NES rather than the Gameboy - any ideas on this?
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by 0xcde4c3db on Thursday November 22, 2018 @09:41PM
(#18513984)
The main advantage to NES emulation is that it's a very mature area of study. High-quality documentation is much more readily available than for other systems, and there's more public discussion of the specific problems that NES emulator authors encounter (both primarily on nesdev.com [1] [2]). There's even a sort of tool-assisted speedrun of writing an accurate NES emulator, if you're into that sort of thing [3] [4].
[2] https://forums.nesdev.com/viewforum.php?f=3
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by hrydgard on Friday November 23, 2018 @03:16AM
(#18515105)
Gameboy is actually a bit friendlier than the NES to get started with, because of the low number of mappers (programmable chips in the cartridges to do tricks with addressing, NES had much greater need for these than the GB due to the dearth of tile RAM). But Sega Master System is even friendlier, I hear.
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by notafraudster on Thursday November 22, 2018 @08:30PM
(#18513746)
Start with Chip-8 or Space Invaders, both of which are substantially easier than the NES and Gameboy.
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by voltagex_ on Thursday November 22, 2018 @09:32PM
(#18513954)
Took me a minute to realise you were talking about 8080 emulation - not Atari emulation: https://github.com/superzazu/invaders
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by jacobush on Friday November 23, 2018 @04:48AM
(#18515458)
How did you reach that conclusion?
Re:Goboy: Multi-Platform Nintendo Game Boy Color Emulator Wr...
by stevekemp on Friday November 23, 2018 @01:48AM
(#18514819)
http://emulator101.com/ is a good resource, as is https://www.reddit.com/r/emudev/.
Or you can just cheat, design a "toy" instruction set, and write something to process it. A couple of years ago I did that, in C/Perl:
* https://github.com/skx/simple.vm
Later I rewrote the interpreter/emulator in go:
* https://github.com/skx/go.vm
The downside with my approach here is that I ignored graphcs, sound, & I/O.
These days I'd recommend you write an emulator for the Chip-8 system..