News for hackers. Stuff that matters.
Re:Fergulator - NES emulator, written in Go by eruditely on Tuesday April 16, 2013 @04:53PM (#5560822)
Where does one go to learn how to create an emulator? I'm interested in picking up C/Go (probably the latter nowadays) while trying to make an emulator. Is there a process people adhere by or do they seriously just figure it out?
Re:Fergulator - NES emulator, written in Go by fiatpandas on Tuesday April 16, 2013 @05:49PM (#5561141)
I'm just beginning with emulators and I wrote my first one to emulate CHIP8 a few months ago. I'm now working on a gameboy emulator. Anyways, having no experience with assembly, processor instructions, bitwise operations, etc, I started with this tutorial:

http://www.multigesture.net/articles/how-to-write-an-emulato...

Also, good reference: http://en.wikipedia.org/wiki/CHIP-8

I think that tutorial quite good and I emerged with a solid understanding of what exactly emulators/interpreters do, and what it means to emulate a certain device. CHIP8 is very simple, so moving to gameboy is actually a very big leap. The gameboy's instruction set (you'll know why that is a crucial piece of information after completing the CHIP8 tutorial) is much larger, so it requires a lot more work and understanding.

Let me know if you have any questions

Re:Fergulator - NES emulator, written in Go by jimmaswell on Tuesday April 16, 2013 @09:28PM (#5562063)
I have a 90%-working chip-8 emulator in JS. I never got around to fixing an instruction that waits for user input, though. http://luna.thehorseplace.us/pr/chip8.html
Re:Fergulator - NES emulator, written in Go by ferg on Tuesday April 16, 2013 @05:16PM (#5560964)
It's mostly the steep curve of learning the platform you're trying to emulate. Start here: http://emu-docs.org/ and read everything you can get your hands on.

Begin with the CPU and start emulating that. Then just start adding hardware bit by bit. It makes a lot more sense as you get into it.

For NES emulation, the community at nesdev.com is amazing for assistance if you get stumped.

Re:Fergulator - NES emulator, written in Go by awy on Tuesday April 16, 2013 @07:10PM (#5561542)
I wrote a post about creating a Chip-8 emulator in JavaScript, if JS is your thing.

http://blog.alexanderdickson.com/javascript-chip-eight-emula...