DDLab for DOS ------------- In older versions of Windows, compile and run in a DOS or terminal window. In windows 7 compile in a terminal window C:\watcom>runfirstBAT Win32 BAT file set then run in DOSBox (see note below) ------------- Compile DDLab for DOS with Open Watcom C/C++ version 1.9 In the Watcom directory and ddlab subdirectory (with *.c *.h and dos4gw.exe files) from the command line in a DOS or terminal window ... first run the following command from C:\watcom>... C:\watcom> runfirstBAT (alternatively amend paths etc) then cd ddlabz04 Compile one .c file: C:\watcom\ddlabz04>wcc386 l_save45 /j/zq/oneatx/zp4/5r Compile and link all .c filed in directory to make ddlabm05.exe: C:\watcom\ddlabz04>wcl386 /l=dos4g *.c /fe=ddlabz04 /j/zq/oneatx/zp4/5r Lnk all .obj filed in directory to make ddlabm05.exe C:\watcom\ddlabz43>wcl386 /l=dos4g *.obj /fe=ddlabz04 /j/zq/oneatx/zp4/5r Create swapspace: C:\watcom\ddlabz04>set dos4gvm=maxmem#8192 virtualsize#32768 swapname#ddlab.swp Link all .obj filed in directory to make ddlabz04.exe C:\watcom\ddlabz03>wcl386 /l=dos4g *.obj /fe=ddlabz04 /j/zq/oneatx/zp4/5r try /j/oneatxr meaning of parameters --------------------- /j - change char default from unsigned to signed /zq - operate quietly /o? followed by .... n - replace floating-point divisions with multiplications - faster code a - global variables not indirectly referenced through pointers, smaller code e - expand small function inline t - time favored over space - faster code but possibly larger x - fastest exec code possible irrespective of architecture r - essential for fast code for pentium /zp4 - alignmet of structure members ?? /5r - generate 386 instructions base on Intel Pentium instruction timings ... ------------------------------------- summary for windows 7, compile in terminal window as above, run with DOSBox C:\watcom>runfirstBAT (for watcom to work, better to amend paths etc) Win32 BAT file set cd ddlabz04 (with *.c *.h and dos4gw.exe) wcl386 /l=dos4g *.c /fe=ddlabz04 /j/zq/oneatx/zp4/5r (compile and link) the executable ddlabz04.exe is created will not run in the terminal window but will in DOSBox (an MS-DOS emulator) double click on DOSBox icon Z:\>mount c c:\watcom Drive C is mounted as local directory c:\watcom\ Z:\>c: (will give C:\> C:\>cd ddlabz04 (the subdirectory) C:\ddlabz04>ddlabz04 (starts ddlab in new window in low res, (can be reset to medium or high note: In low res, the ddlab pointer should be there, confined to the DDLab window. If the ddlab pointer is missing or immobile, press the right mouse button and it should reappear. In medium and high res, the mouse pointer exists and moves, but is invisible! Any suggestions to fix this ?? After running ddlab in DOSBox, the pointer might disappear -- to fix enter Ctl-Alt-Del and select cancel, the pointer reappears. To exit the DOSBox and release the cursor enter "exit". --------------------------------------------------------------------