Jump to content

exe2bin

From Wikipedia, the free encyclopedia
(Redirected fromEXE2BIN)
exe2bin
Developer(s)Microsoft,IBM,DR,Datalight,Novell,PhysTechSoft&Paragon Technology Systems,The FreeDOS team
Initial releaseMay 1982;42 years ago(1982-05)
Written inMS-DOS:x86 assembly language
FreeDOS:C
Operating systemMS-DOS,PC DOS,DR DOS,ROM-DOS,PTS-DOS,FreeDOS,Windows
PlatformCross-platform
TypeCommand
LicenseMS-DOS:MIT
FreeDOS:Sybase Open Watcom Public License

Thecommand-linetoolexe2binis apost-compilationutility program available onMS-DOSand otheroperating systems.[1][2]

Overview

[edit]
EXE2BIN.EXEinIBM PC DOS1.10

Early compilers andlinkersfor theMS-DOSplatform could not produce aCOM fileexecutable directly. Instead, the compilers would output anEXE-format filewith relocation information. If all8086 segmentswere set to be identical in such an EXE file (i.e. the"tiny" memory modelwas used), thenexe2bincould convert it to a COM file.[3] exe2bincould also be used to convert compiled code to make it suitable to be embedded inROMas part ofBIOSor adevice driver.

Availability

[edit]

The command was included in MS-DOS versions 1 thru 3.1 as part of a standard distribution. For version 3.2, among the changes were the version included did not permit itself to run on any version except 3.2.[4]For the next version, 3.3, there was no EXE2BIN on the DOS disk. "Instead, IBM sells the program separately, at an extra cost, with the DOS Technical Reference." IBM also added code to check the version.PC Magazinepublished a workaround: just patch it[5]to work with 3.2 or higher.

One way or the other, it was no longer available for the base price after 3.2; for version 6 it was on what was called the Supplemental Disk.[6]The program was also distributed with manylanguage compilersfor MS-DOS in the 1980s, and included with certain versions ofIBM PC DOS.

PhysTechSoft&Paragon Technology SystemsPTS-DOS,[7]Digital ResearchDR DOS 6.0,[8]andDatalightROM-DOS,[9]also include an implementation of theexe2bincommand.

The command is also available inFreeDOS.This implementation is licensed under theSybase Open Watcom Public License.[10]

Windows XPand later versions includeexe2binand other16-bitcommands (nonnative) for theMS-DOS subsystemto maintain MS-DOS compatibility. The 16-bit MS-DOS subsystem commands are not available on64-biteditions of Windows.[11]

See also

[edit]

References

[edit]
  1. ^Paterson, Tim(2013-12-19) [1983]."Microsoft DOS V1.1 and V2.0: /msdos/v20source/EXE2BIN.ASM".Computer History Museum,Microsoft.Retrieved2015-10-01.
  2. ^Shustek, Len (2014-03-24)."Microsoft MS-DOS early source code".Software Gems: The Computer History Museum Historical Source Code Series.Retrieved2015-10-01.
  3. ^The New Peter Norton Programmer's Guide to the IBM PC & PS/2by Peter Norton and Richard Wilton (Microsoft Press, 1987)ISBN1-55615-131-4,p.425
  4. ^Asael Dror (January 12, 1988). "Thank You, IBM".PC Magazine.p. 366.
  5. ^DEBUG.. E 30D 73 (from a compare/JZ to compare/JNB = greater than OR EQUAL TO 3.2)
  6. ^Wolverton, Van (2003).Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition.Microsoft Press.ISBN0-7356-1812-7.
  7. ^ "PTS-DOS 2000 Pro User Manual"(PDF).Buggingen, Germany:Paragon Technology GmbH.1999.Archived(PDF)from the original on 2018-05-12.Retrieved2018-05-12.
  8. ^DR DOS 6.0 User Guide Optimisation and Configuration Tips,4corn.co.uk
  9. ^"Datalight ROM-DOS User's Guide"(PDF).Datalight.
  10. ^"ibiblio.org FreeDOS Group -- FreeDOS Base".Ibiblio.org.Retrieved8 November2021.
  11. ^"MS-DOS subsystem commands".Docs.microsoft.11 September 2009.Retrieved8 November2021.

Further reading

[edit]
[edit]