[comp.sys.ibm.pc.programmer] Need to convert .EXE to .COM

stever@Octopus.COM (Steve Resnick ) (03/14/90)

After getting much Email regarding my original post, let me clarify something.
I want to convert a program which was written to be a .EXE program to a .COM.
DOS EXE2BIN will not do this because, with a stack segment, and an IP value
different than 100H it is an incompatible program. The program I was looking
for loaded ANY .EXE program and made a .COM file out of it. If the program was
larger than 65280 bytes, DOS would refuse to run it, but the program still
converted it. What I need is a way to load a .EXE file and convert it to an
image which can be relocated to segment:offset FFFF:10H (The first addressable
64K of extended memory) Since you cannot do segment arithmetic without pointing
into ROM the program needs to be able to run in a single segment. This is a 
little beyond my capabilites as a hacker since I'm not sure what DOS does when
it loads a .EXE file and runs it. So please (minor flame on) stop sending me
E-Mail about EXE2BIN, I know what that does, I've been hacking assembler on 
a PC for years... :)
 
 Again, thanx in advance....

 Steve


 ...sun!vsi1!octopus!stever
 stever@octopus.COM