Read Data Segment offsets

Tools, assembly, and file formats.
Post Reply
gerstrong
Posts: 63
Joined: Sun Jan 25, 2009 3:21 pm

Read Data Segment offsets

Post by gerstrong »

Hello,

I have another request for you. As you helped me a lot with the action format I wanted to ask another thing.

The DSeg offsets are known, they are written over here in the wiki and even hardcoded in somes programs like modkeen. I assume, that of 7 games they can be taken as constants.

Now my problem with that. There are different versions and I imagine, that those dseg offsets change.

So I ask, is there a decent way to obtain that offset? I would have an idea how to do that, although I'm not sure about the idea.

I would scan the EXE-Data for a string called "Borland C++", as it seems, that there starts that data segment. What do you think about it?

Is there a more clever way to do it?

Regards and thanks again in advance!!
Post Reply