Reply 20 of 34, by jwt27
- Rank
- Oldbie
Here's my MEM /C then:
This is without CD drivers and EMS, which I don't normally use. If something does need a CD I can just run SHSUCDX, as UIDE provides a CD driver (and a massive disk cache, that's the 128MB used XMS you see there). For EMS I have to reboot and select the second option in the boot menu. This option loads JEMM386 for 8MB of EMS, without using any more conventional RAM (still 627k free). Supposedly there's also a program called EMSMagic that provides EMS on the fly but I haven't tried that yet. Would be more convenient though.
MI.COM /A provides a bit more information:
edit:
And here are the config files that made this happen. They are quite elaborate and (I hope) more readable than your average DOS config files. I use FreeDOS's FDAUTO.BAT and FDCONFIG.SYS files so programs that change your config files won't be able to break anything:
FDCONFIG.SYS:
REM 0x12 = 80x50
SCREEN =0x12
REM country code, codepage, country file
COUNTRY =031,437,C:\DOS\BIN\COUNTRY.SYS
VERSION =6.22
BREAK =ON
SWITCHES=/E
MENUCOLOR=7,0
MENUDEFAULT=1
MENU 1 - Load FreeDOS (XMS)
MENU 2 - Load FreeDOS (XMS + EMS)
MENU 3 - Load Windows 2000
MENU 9 - Load FreeDOS without drivers
3?DEVICE=C:\GRUB\GRUB.EXE --config-file="root (hd0,0);chainloader /ntldr"
REM /I= = Include region
1?DEVICE=C:\DOS\BIN\UMBPCI.SYS /I=E000-EFFF
REM /W = Load in workspace buffer
REM /Nn = n XMS handles
1?DEVICE=C:\DOS\BIN\XMGR.SYS /W /N128
REM nM = n MB EMS
REM I= = Include UMB region
REM X= = Exclude UMB region
2?DEVICE=C:\DOS\BIN\JEMMEX.EXE 8M I=TEST X=TEST
12?DOS =HIGH,UMB
12?DOSDATA =UMB
12?BUFFERSHIGH =4
12?FILESHIGH =40
12?STACKSHIGH =9,256
12?LASTDRIVEHIGH=Z
REM /D: = CD device driver
REM /H = Load to HMA
REM /F = Use large (fast) cache blocks
REM /Sn = n MB cache
REM /Rn = Use memory above n MB
1?DEVICEHIGH=C:\DOS\BIN\UIDE.SYS /D:FDCD0001 /H /F /S128 /R63
2?DEVICEHIGH=C:\DOS\BIN\UIDE2.SYS /D:FDCD0001 /H /F /S128 /R63
12?DEVICEHIGH=C:\DOS\NET\IFSHLP.SYS
REM /Txx= Set xx as text mode
REM /P = Pass unknown requests to CON:
12?DEVICEHIGH=C:\DOS\BIN\NANSI.SYS /P /T5C /T5E /T6A /T70 /T71 /T72 /T73 /T74 /T75
REM /E: = Environment size
REM /P= = Autoexec.bat location
12?SHELLHIGH=C:\DOS\BIN\4DOS.COM C:\DOS\BIN /E:1024 /P=C:\AUTOEXEC.BAT
9?SHELL =C:\DOS\BIN\4DOS.COM C:\DOS\BIN /E:1024 /P=C:\AUTOEXEC.BAT
AUTOEXEC.BAT:
@ECHO OFF
SET BLASTER=A220 I5 D1 T4
CALL FDAUTO.BAT >& BOOT.LOG
ECHO.
ECHO *** FREEDOS r2041 ***
ECHO.
ECHO %@DOSMEM[b] BYTES FREE.
ECHO.
ECHO READY.
ECHO.
FDAUTO.BAT:
@ECHO OFF
SET /R C:\DOS\ENV\DEFAULT.VAR
REM -h = Human readable file size
REM -a = Show all files
REM -G = Do not show user group
REM -X = Sort by extension
ALIAS LS=*LS --color=auto -haGX
ALIAS REBOOT=FDAPM WARMBOOT
ALIAS HALT=FDAPM POWEROFF
ALIAS SPINDOWN=FDAPM SPINDOWN
BREAK ON
IF "%CONFIG%"=="9" GOTO NODRIVERS
LH DIRCOLORS -b C:\DOS\ENV\DIRCOLOR.CFG
CALL YMF719
REM FastVid 001
CALL FV 0
REM CuteMouse
REM /P = PS/2 port
REM /3 = Three-button mouse
IF "%CONFIG%"=="1" LH CTMOUSE /P /3
REM Logitech mouse driver
REM PS2 = PS/2 port
REM Sn = Speed n
IF "%CONFIG%"=="2" LH MOUSE PS2 S05
LH FDAPM APMBIOS
REM $P = Current directory in uppercase
REM $g = >
PROMPT $P$g
REM Rate 32 = 30 cps
REM Delay 1 = 1/4 sec
MODE CON: RATE=32 DELAY=1
CLS
:NODRIVERS