Page 1 of 1

What emulator can log writes to the APU registers?

Posted: Tue May 29, 2012 12:03 pm
by Grapeshot
I need to get a log of APU writes for the homebrew game Driar so I can tell if the reason some of the songs sound terrible in my emulator is an APU or CPU bug.

I can't use the CPU execution logs for comparison since the bug doesn't occur until 30 seconds into the music track and the logs are over 500mb. FCEUX lets me run LUA code on a write to an APU register, but there is no way to capture the actual value written.
Is there another emulator out there that can do conditional logging of writes?

Posted: Tue May 29, 2012 12:05 pm
by 3gengames
Use FCEUX's debugger.

Posted: Tue May 29, 2012 12:08 pm
by Shiru
Shouldn't be too difficult to modify FCEUX or some other open source emulator as well and add log for the APU writes.

Posted: Tue May 29, 2012 12:56 pm
by Dwedit
You can use regular expressions to cut away parts of a debug log that you don't need. Make sure NTFS compression is enabled for the directory you are making your debug log in.
Except I don't think text editors do too well on 500MB files. Maybe split it into 50MB files first.
Textpad seems to do better than Notepad++ for these kind of tasks.