, - /stub Linker, Windows. , .... -, , , , .
, DOS 40 . , "DO" (Borland Turbo ++ ), , , /. BTW - Visual C 1.52c ( Visual C, DOS), , Open WatCom.
, , - , , , , . Open WatCom ( "Hello World" ) Windows, exe (Borland created,) . Open WatCom . Hex Editor , , , "stub.exe" ( Windows). Hex Editor, PE . DOS exe, . Windows . , :)
FYI - , Windows PE.
0 (, 1.) , Hex Editors ( ) .
2 3, DOS - . 2 , 3 - . , , 0 511 (0 - 1ff ). 0 , 512 (200 ) .
4 5 ( /), 512 (200 ) DOS. . , , 512 (200 hex), 2-3, DOS. 0, 1, , 0 - " " stub exe.
offset 60-61 (hex 3C-3D) PE ( Portable Executable) (, Windows). ( ,) DOS . , 0 ( PE .) , " DOS".
, :
WatCom http://www.openwatcom.org/index.php/Main_Page
http://www.virtualobjectives.com.au/utilitiesprogs/partcopy.htm
I do not know where to find the Hex Editor that I used. I used CEdit, a DOS program that I really liked, but could not find on the network. You will have to use DOSBox with it, since Win7 will not start it. There are probably other compilers that do the same, and probably a bunch of partial file copiers. These are the tools that I used.