Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*

SubjectRe: debugging nes emulator Reply to this message
Posted byBart T.
Posted on06/20/08 02:47 PM

> hi there,
> i have just begun programming my own nes emulator, and have extracted all the
> header info from the rom, the question is as i carry on with my development how
> do i know i am getting the correct results?
> does anyone have a nes emulator source code (C code)which i can run via visual
> studio to use as reference?
> any help given would really be appreciated
> regards

You should have no problem finding open source NES emulators but that won't really help you too much in debugging your own. When writing an emulator, you should include your own debugger (that is, the capability to at least single step through code, look at the registers, etc. allowing you to verify that the CPU emulator is operating correctly.)

It's a painstaking process but as you trace how your CPU emulator is executing the NES code, you'll be able to determine whether it's working correctly or not. You can include all sorts of other custom debugging aids as you get further along: a tile viewer, something to print out the PPU state, etc.


Entire Thread
Subject  Posted byPosted On
*debugging nes emulator  bruce_li06/20/08 10:28 AM
.*Re: debugging nes emulator  _AamirM_07/04/08 04:56 AM
..Re: debugging nes emulator  Bart T.06/20/08 02:47 PM