Ethernes, quick try of writing an emu…

Hi ! :-)

For last two weeks, I worked on a small project of NES emulator for PC. I had never coded an emu before, and it was a great experience and training. I don’t have time to continue this project, and it was designed to be a quick project, for training purposes (before working on Desmume).
Working:

  • 6502 core (documented instructions only). All instructions seems to be working.
  • PPU cycling and Vblank, BG display (There is a bug with color tables).

Not working:

  • PPU sprites.
  • Commercial games (even Mario crashes :-( ).

My computer’s CPU is 1,5Ghz and I get a framerate of 150fps with this emu: I think it’s not good, seeing the NES’ cpu is about 1Mhz.

You can have a look at the source code (C++) here: http://thoduv.drunkencoders.com/ethernes/ethernes.zip

If you are skilled in emu developpement, and you see in the code some things that are bad in coding an emu, you can told me ! :-)

Leave a Reply

Bot-Check

(required)