Why does nestest cycle count reset to 0?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Why does nestest cycle count reset to 0?
by on (#194267)
I am just wondering why the cycle count for the nestest rom golden log goes from:

line 46: CYC: 333
line 47: CYC: 1

Is this something my emulator should be doing?
Re: Why does nestest cycle count reset to 0?
by on (#194269)
CYC is measuring PPU X coordinate. It should range from 0 through 340.
Re: Why does nestest cycle count reset to 0?
by on (#194270)
lidnariq wrote:
CYC is measuring PPU X coordinate. It should range from 0 through 340.


thanks for the response :). I am just trying to test my CPU at this moment and haven't started the PPU yet. Should I just print cycleCount % 341?
Re: Why does nestest cycle count reset to 0?
by on (#194271)
PPU cycles are three times as fast as CPU cycles, e.g. "LDA #0" will cause the CYC count to increase by 6. But otherwise that's ... probably safe?
Re: Why does nestest cycle count reset to 0?
by on (#194323)
Just ignore the CYC value when you compare the logs.