Ready.


form@fix'ing for an .exe for MSDOS

This is the include file to develop your DOS-runnable .exe (program), with form@fix.

For an .exe to run on MS-DOS, include this file (i.e: \F "fixDX.htm"). The rest of the form@fix code in that file, must go after where this file is included at.

\F "fixDef.htm"
//... for ensuring that, fixDef.htm is framed, first.
//Otherwise, fixDX.htm would not function right.

\a form@fix@RunTime_Max  

\f platform 1 \\.exe of MSDOS

from here ...

To tell MS-DOS, where to start running the .exe, the next frame is handy. This frame is in a null-terminated array. Notice that, the a \\ within a quoted range, is not for commentary. The quote will replace that. i.e: They are not double.

\r! fixStArt.htm
   \'\\r! z   \\a FIX::StArtHere   \\* z   \\a z'
   \'\\*= 0xe 0x1f'	\\let DS=CS
   \'\0'
//Frame this, where wanted, with a	\F@ fixStArt.htm

return to the file-work-area

The active Arz-extent - modifiable by \Ae - is telling form@fix, the range to write to the output file. We won't write the run-time-only area to the output file.

\r! form@fix@RunTime_Max

\a 0
\'MZ'       \\ MSDOS signature at file start.
//\r! FIX::LastPage_ByteCount
\*=. 512    \\ Bytes on last page of file
//\r! FIX::Exe_PageCount
\*=. 8      \\ Pages in file (Page==512bytes)
\*=. 0      \\ Relocations
\*=. 4      \\ Size of header in paragraphs 
\*=. 0      \\ Minimum extra paragraphs needed
\*=. 0xffff \\ Maximum extra paragraphs needed
\*=. 0      \\ Initial (relative) SS value
\*=. 0xffee \\ Initial SP value
\*=. 0      \\ Checksum
\r! FIX::StArtHere
\*=. 0      \\ Initial IP value
\*=. 0      \\ Initial (relative) CS value
\*=. 0      \\ File address of relocation table
\*=. 0      \\ Overlay number
\a+1 8      \\ Reserved. Zero-filled.
\*=. 0      \\ OEM identifier (for e_oeminfo)
\*=. 0      \\ OEM information; e_oemid specific
\a+1 20     \\ Reserved. Zero-filled.
\a+1 4     \\ address of new exe header



Any Questions?: . . (Request for Content . . . . . Report Errors . . . . . Submit Case Study . . . . . Report Content Similarity.)

RevisioNo: 1_1
Last-Revised (text) on July 31, 2005
Written by: Ahmed Ferzen/Ferzan R Midyat-Zilan (or, Earth)
Copyright (c) [2002,] 2003, 2004, 2005 Ferzan Midyat. All rights reserved.
form@fix, GFS, and aFiRMz are trademarks of Ferzan Midyat.