What emulator can log writes to the APU registers?

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
Grapeshot
Posts: 85
Joined: Thu Apr 14, 2011 9:27 pm
Contact:

What emulator can log writes to the APU registers?

Post 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?
3gengames
Formerly 65024U
Posts: 2281
Joined: Sat Mar 27, 2010 12:57 pm

Post by 3gengames »

Use FCEUX's debugger.
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Post 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.
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post 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.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Post Reply