🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1564

Re: Need to convert .EXE to .COM

#1564
From: Steve Resnick
Date: Tue, 13 Mar 1990 18:59
22 lines
1610 bytes
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
Technical Details
Message-ID: <1990Mar13.185952.29216@Octopus.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!lll-winken!elroy.jpl.nasa.gov!usc!samsung!rex!ames!vsi1!octopus!stever

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!lll-winken!elroy.jpl.nasa.gov!usc!samsung!rex!ames!vsi1!octopus!stever
From: stever@Octopus.COM (Steve Resnick )
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Need to convert .EXE to .COM
Message-ID: <1990Mar13.185952.29216@Octopus.COM>
Date: 13 Mar 90 18:59:52 GMT
Reply-To: stever@octopus.COM (Steve Resnick )
Distribution: usa
Organization: Octopus Enterprises, Cupertino CA
Lines: 23