Error in C++ / NES emulator program

Asked By 20 points N/A Posted on -
qa-featured

Hello,

I am attempting to plan a Nintendo NES emulator.

Also I have coded a number of opcodes (NES utilizes a 6502 processor) as well as them worked rightly.

However now I am attempting to assign a part of memory but I find this error message.

Please help me to solve it.

Unhandled Exception

General Protection Exception

EMUTEST.CPP 134

EMUTEST(2) 0x1B7F:0x0286 Processor

Fault

                       OK

Thanks a lot.

SHARE
Answered By 10 points N/A #150279

Error in C++ / NES emulator program

qa-featured

Hello Pamela,

If you cannot be able to catch the problem using the debugger in Visual C++ , and if the error that you're getting is indeed crashing the entire system, you will need to take a look at and try the resolution specified there:

https://support.microsoft.com/en-us/help/315263/how-to-read-the-small-memory-dump-file-that-is-created-by-windows-if-a

But if the error does not crash the system, and as well the debugger is not getting you to the point of where the error is occurring, you will need to try using OutputDebugString as well as WinDbg to narrow down on the line that is causing the problem by doing a binary search with two output strings to see where the crash occurs.

https://msdn.microsoft.com/en-us/library/aa363362(VS.85).aspx

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/index

Regards,

Carl

 

Related Questions