Re: [Freedos-user] Customizing Startup Files
Well, I tought you only want to specify stacks if the program you are loading doesnt have a stack segment of it own. Arkady V.Belousov wrote: No so. When dealing many years with stacks=0,0, I found only only AT386 refurbished machine, which hangs with this setting at loading Win3.1. All other machines and times this statement was fine. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
Hi! chris evans wrote: Well, I tought you only want to specify stacks if the program you are loading doesnt have a stack segment of it own. _All_ programs have own segment and there is not possible to not have own segment. stacks= statement controls only internal DOS stacks, which it uses for its own purposes. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
That is true, ss:sp will always be set to some address. I seen programs that don't initialize SS:SP at start. In that case one would think that would default to whatever was set prior to it being run (i.e. Dos stack). Even though the linker will emit a warning 'No Stack'. if the program doesn't need it then that will be normal, abeit will have to be careful. --chris _All_ programs have own segment and there is not possible to not have own segment. stacks= statement controls only internal DOS stacks, which it uses for its own purposes. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
Hi! chris evans wrote: That is true, ss:sp will always be set to some address. I seen programs that don't initialize SS:SP at start. All programs, compiled by OpenWatcom in non-tiny memory model are such. In that case one would think that would default to whatever was set prior to it being run (i.e. Dos stack). Wrong think. For .com programs, SS points to PSP, SP equal to 0xFFFE (or less, if there is less than 64k of free memory to run program - for example, in UMB). For .exe files, +SS:SP always specified in header - this is why program doesn't not need to change SS:SP after start explicitly, this may be performed by linker (if stack size and placement if fixed inside program image). DOS stacks are irrelevant there. Even though the linker will emit a warning 'No Stack'. This warning only means, that linker doesn't found in object files explicit segment with STACK attribute. Then for .exe program it inserts its own, default segment (512 bytes in size, AFAIR). if the program doesn't need it then that will be normal, abeit will have to be careful. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
Hi! Lester Vedrox wrote: I'm trying to customize startup files and have a few questions. 1) STACKS=9,256. STACKS=0,0 seem a bit risky No so. When dealing many years with stacks=0,0, I found only only AT386 refurbished machine, which hangs with this setting at loading Win3.1. All other machines and times this statement was fine. 3) What is this: SET DIRCMD=/OGN This sets in environment variable, which examined by DIR in command.com as if you enter these options manually in its command line. 4) DEVICE=C:\FDOS\BIN\FDXXMST.SYS BIOS NUMHANDLES=64 How to figure out the best value for numhandles (my pc: AMD Athlon 64, 512 MB RAM) You may minimize this value (also as files=), unless there no programs, which require too much of XMS handles. I suggest, even 16-32 handles should be enough. 5) Which Shell command is better: SHELL=C:\COMMAND.COM /P=C:\FDAUTO.BAT SHELL=C:\COMMAND.COM C:\FDOS\BIN /E:512 /P=C:\FDAUTO.BAT Both is equal. Difference is that second command line explicitly specifies environment size (I not remember, which size is by default) and specifies path, which will be written in COMSPEC= variable. Here is the complete copy of both startup files: ---FDCONFIG.SYS--- FILES=50 BREAK=ON STACKS=9,256 SET DOSDIR=C:\FDOS LASTDRIVE=Z BUFFERS=20,0 DOS=HIGH,UMB DOSDATA=UMB numlock off break on dos high,umb country = ... lastdrive z buffers 16 stacks 0,0 files 40 fcbs 1 SET DIRCMD=/OGN This need only if you need to customize DIR by /OGN option. ---FDAUTO.BAT--- @ECHO OFF PROMPT $P$G SET PATH=%DOSDIR%\BIN Short form doesn't requires set before path. Also, where here is definition for DOSDIR? SET TEMP=%DOSDIR%\TEMP SET TMP=%DOSDIR%\TEMP I recommend to place TEMP directory in the root. LH %DOSDIR%\BIN\CTMOUSE.EXE /3 /V LH here not need (and not recommended). Also, you may omit path mention, because it already present in SET PATH. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
Hi Lester! As UMBPCI.SYS is used insted of EMM386.EXE what's the proper setting for DOS and DOSDATA. I left both at: DOS=HIGH,UMB DOSDATA=UMB Should this be changed to: DOS=HIGH rem DOSDATA=UMB No - if your UMBs work, you can leave DOS and DOSDATA as they are. If they do not work, then you should not load UMBPCI at all... 3) What is this: SET DIRCMD=/OGN This means that everytime when you run DIR, it will behave as if you had used the option /OGN for it. See DIR /? for details. 4) DEVICE=C:\FDOS\BIN\FDXXMST.SYS BIOS NUMHANDLES=64 How to figure out the best value for numhandles Does not really matter - more handles mean that FDXXMS will use a bit more memory (do not use FDXXMST unless you really want to activate the debugging functions in it, otherwise the extra complexity gives you no extra gain). Too few handles mean that some programs which use XMS will not work. Just try it :-). And check the MEM /X output to see how many handles are actually used. What's the proper keyboard driver for US-Eng keyboard? The best is probably not using a driver at all as the BIOS default is US. INSTALLHIGH=C:\FDOS\BIN\LBACACHE.COM BUF 12 DRV C see LBACACHE /? for the current syntax. I think you should use something like LBACACHE 4096 TUNS (if you do not use SCSI / SATA / RAID, the TUNS is not needed). You may want to add the FLOP option for floppy caching, too. DRV is not needed as drives are autodetected. LH DISPLAY CON=(EGA,,1) As you do not use non-US fonts, you do not have to load DISPLAY at all. DEVICEHIGH=C:\FDOS\BIN\QCDROM.SYS /D:CDROM1 DEVICEHIGH=C:\FDOS\BIN\CDRCACHE.SYS CDROM1 CDRCACH$ 12 SHCDX33A /D:?CDROM1 /C /V /~+ /Q+ If you load things that way, the cdrom cache is not active. Replace the SHCDX33A line by SHCDX33A /D:?CDRCACH$ ... Eric --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Customizing Startup Files
1) Thanks, Eric. I set LBACACHE as suggested for SATA drive: INSTALLHIGH=C:\FDOS\BIN\LBACACHE.COM 4096 TUNS This, however, resulted in the following error after Config.sys: Bad or missing command interpreter After removing TUNS Autoexec.bat resumed running without problems. I guess it depends on the drive. Would you suggest anything else in place of TUNS or just leave this blank as is? INSTALLHIGH=C:\FDOS\BIN\LBACACHE.COM 8192 2) Running US-Eng keyboard straight from BIOS (which is US anyways) sounds like a good idea but I still can't get the right ALT key working. The following approach didn't solve the problem either (kb2pre4.zip): LH KEYB US,,C:\FDOS\BIN\KEYBOARD.SYS Maybe it's because it's multimedia keyboard. Lester -- To: freedos-user@lists.sourceforge.net Cc: Subject: Re: [Freedos-user] Customizing Startup Files Date: Tue, 9 May 2006 11:45:38 +0200 (MEST) INSTALLHIGH=C:\FDOS\BIN\LBACACHE.COM BUF 12 DRV C see LBACACHE /? for the current syntax. I think you should use something like LBACACHE 4096 TUNS (if you do not use SCSI / SATA / RAID, the TUNS is not needed). You may want to add the FLOP option for floppy caching, too. DRV is not needed as drives are autodetected. What's the proper keyboard driver for US-Eng keyboard? The best is probably not using a driver at all as the BIOS default is US. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user