Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext Thread*Show in Threaded Mode


Subjectdebugging nes emulator new Reply to this message
Posted bybruce_li
Posted on06/20/08 10:28 AM



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




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.


----
Bart


SubjectRe: debugging nes emulator new Reply to this message
Posted by_AamirM_
Posted on07/04/08 04:56 AM



> 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
>

Hi,

Look at Nintendulator. It has very nice debugging support and is open source too not to mention its very accurate as well.

stay safe,

AamirM

http://aamirm.hacking-cult.org Regen -- Accurate Sega Genesis/MegaDrive emulator


Previous ThreadView All ThreadsNext Thread*Show in Threaded Mode