anormal
Experienced Member
Hi!
I've been looking for more information about this, after some googling (only got modern msdos stuff/windows), y tried
to read source of dosbox, but it's not very detalied as reference.
What i am looking for is the loading process of .com and .exe files before execution.
I already know .com files are loaded at 100h, 0..99h data is setup by msdos and the run it jumping to 100h
For exes, is a bit more complicated, because relocations and possibility of exe file being very large. Not much idea about this.
I read my book of Undocument PC 2nd ed., but don't found the information there.
For now i am thinking in looking for Ralph Brown Interrupt lists, or a very gold program i remember called helppc with lots of
technical info. Um... i am thinking i got a bunch of MS technical memos i downloaded from somewhere.
What i want to do is, i got an snapshot of a typical x86 msdos 3.30 system ram saved to disk (use hampa pce emulator with monitor
command "save filename bin 0 fffff" (other ways are possible as running a small script inside debug to same entire 1st MB of ram to a file). Then i want to load a com or exe file to this ram and do some tracing in the binary.
If anyone could point me to any book or url or whatever explaining how a com/exe file is loaded in memory prior to running it...
Maybe this is basic stuff for many of you but i am bit rusty in old stuff by now.
Thanks
I've been looking for more information about this, after some googling (only got modern msdos stuff/windows), y tried
to read source of dosbox, but it's not very detalied as reference.
What i am looking for is the loading process of .com and .exe files before execution.
I already know .com files are loaded at 100h, 0..99h data is setup by msdos and the run it jumping to 100h
For exes, is a bit more complicated, because relocations and possibility of exe file being very large. Not much idea about this.
I read my book of Undocument PC 2nd ed., but don't found the information there.
For now i am thinking in looking for Ralph Brown Interrupt lists, or a very gold program i remember called helppc with lots of
technical info. Um... i am thinking i got a bunch of MS technical memos i downloaded from somewhere.
What i want to do is, i got an snapshot of a typical x86 msdos 3.30 system ram saved to disk (use hampa pce emulator with monitor
command "save filename bin 0 fffff" (other ways are possible as running a small script inside debug to same entire 1st MB of ram to a file). Then i want to load a com or exe file to this ram and do some tracing in the binary.
If anyone could point me to any book or url or whatever explaining how a com/exe file is loaded in memory prior to running it...
Maybe this is basic stuff for many of you but i am bit rusty in old stuff by now.
Thanks