|
Post by hambadger on Dec 23, 2022 1:59:41 GMT
I'm trying to disassemble the damage calculation code from Tengai Makyou Ziria, but I've not been successful getting disassembled code that matches what I see in Mednafen. I'm assuming that the config file I'm using is set up incorrectly.
I started with the config file from the Taidama Yusha Boshuchu example as a base, and changed the MPR values to the MPR0-7 values I see in the Mednafen debugger when I break at the start of the code I'm interested in. The code I'm looking at starts at C8FD, and the disassembly output I get from Elmer's mednafen version is showing me that it's in page 84.
In the config file I'm setting the logical field to C8Fd and the page field to 84 based on that. Is that correct? If so, what should I give for the offset field?
(For what it's worth, the disc image I'm using is a cue/iso/wav set, with Track 2 and 6 being iso files. I'm running the disassembler against track 2. I made the disc images myself with turborip using a legit physical copy.)
|
|
|
Post by elmer on Dec 23, 2022 9:59:44 GMT
If you're using one of my mednafen builds, or the latest PCEDev mednafen build, you can just disassemble the code to a file from the debugger, and skip having to create an Etripator config file ... that's what I do when I'm trying to understand/modify a game's code.
|
|
|
Post by hambadger on Dec 23, 2022 14:52:10 GMT
Thanks for the update!
Mednafen doesn't really give me the output in the format I want however and I'd like to try to get Etripator working.
|
|
mooz
Deep Blooper
Posts: 29
|
Post by mooz on Jan 4, 2023 9:36:07 GMT
Disassembling CD games is different from HuCard. Mainly because what you see in Mednafen are the sectors loaded in RAM. If you want to disassemble a CD games, you must know which sectors were loaded and where they are stored. You can do this by activating bios call logging in Mednafen.
Another issue is that redump isos are using 2352 bytes sectors whereas the PCE is using 2048..
|
|