Disassembling the Digital Pictures media codec

Ask anything your want about Mega/SegaCD programming.

Moderator: Mask of Destiny

Very interested
Posts: 256
Joined: Tue Feb 06, 2007 8:18 pm

Post by TascoDLX » Thu Feb 05, 2015 6:12 am

Paul Jensen wrote:Question: How did you know that SUBCODE.BIN gets loaded at $008268?
Usually I'd look at the IP/SP -- the startup code for each cpu -- and observe where files get read and copied. That may require decent knowledge of sub cpu functions (cd bios calls, etc), and the code is sometimes not obvious. It's easier using a debugger.

In this case, I just ran it via the MESS debugger, executed a break during video playback, and (dumped and) searched the sub's prg-ram for the file data. I find it very handy to know where certain files are loaded in memory, especially for more modular programs.

Post Reply