Hey guys, I am brand new here (and writing my first emulator). I have started with CPU and main memory for writing my emulator, and have starting looking into the nestest rom and the "golden log" from Nintendulator. I have a couple of things that confuse me when looking over this.
First of all, why does the stack pointer start at FD instead of FF in this log? Is there some execution that happens before this log starts?
Second, (and probably related) why do we start at scanline 241? I am also having trouble in general wrapping my head around how the CPU/PPU synchronization works, so that is probably part of the problem here. Why does the cycle count reset every time the scanline count updates?
As I said, I am definitely new at this .
I have been lurking here for a while, and have learned a lot from searching and reading what is already here. If my questions have been answered elsewhere, I have been unable to find the answers using the forum search tool.
Thanks in advance!
First of all, why does the stack pointer start at FD instead of FF in this log? Is there some execution that happens before this log starts?
Second, (and probably related) why do we start at scanline 241? I am also having trouble in general wrapping my head around how the CPU/PPU synchronization works, so that is probably part of the problem here. Why does the cycle count reset every time the scanline count updates?
As I said, I am definitely new at this .
I have been lurking here for a while, and have learned a lot from searching and reading what is already here. If my questions have been answered elsewhere, I have been unable to find the answers using the forum search tool.
Thanks in advance!