NovaSquirrel / Mesen-SX

Homebrew development oriented fork of Mesen-S - a cross-platform (Windows & Linux) SNES emulator built in C++ and C#. Deprecated; see https://github.com/SourMesen/Mesen2/
GNU General Public License v3.0
92 stars 21 forks source link

[Feature Request] Cycle counter for CPU #74

Closed jeffythedragonslayer closed 2 years ago

jeffythedragonslayer commented 2 years ago

The Mesen-SX debugger has a cycle counter for the PPU that resets every scanline. It would be nice if there were a counter for the number of CPU cycles that have elapsed since reset/power on.

image

jeffythedragonslayer commented 2 years ago

This looks to be at least partially implemented in frmTraceLogger.cs:

image

jeffythedragonslayer commented 2 years ago

The ? tooltip in the Trace Logger says this CPU cycle count is a 32-bit unsigned integer which resets to 0 at power-on. Check the override box and add CC:[CycleCount] to the text box to see.

image