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