VOGONS


Memory error in DOS

Topic actions

Reply 60 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie
Gmlb256 wrote on 2024-07-05, 14:36:
CONFIG.SYS: […]
Show full quote
Cursed Derp wrote on 2024-07-05, 13:26:

Can I see what a proper config.sys or autoexex would look like for my situation?

CONFIG.SYS:

[COMMON]
DOS=HIGH,UMB,NOAUTO
FILESHIGH=30
BUFFERSHIGH=10
STACKS=9,256
FCBSHIGH=4,0
LASTDRIVEHIGH=H

[menu]
menuitem=EMC, Expanded memory + Mouse + CD-ROM
menuitem=XMC, Extended memory + Mouse + CD-ROM
menuitem=CMC, Conventional Memory only + Mouse + CD-ROM
menuitem=EM, Expanded memory + Mouse
menuitem=XM, Extended memory + Mouse
menuitem=CM, Conventional memory only + Mouse
menuitem=WIN, Windows 98

menudefault=EMC,10

[EMC]
INCLUDE=EM
DEVICEHIGH=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[XMC]
INCLUDE=XM
DEVICE=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[CMC]
INCLUDE=CM
DEVICE=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[EM]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\EMM386.EXE I=B000-B7FF HIGHSCAN RAM
DEVICEHIGH=C:\WINDOWS\SETVER.EXE

[XM]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\SETVER.EXE

[CM]
DEVICE=C:\WINDOWS\SETVER.EXE

[WIN]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\IFSHLP.SYS
DEVICE=C:\WINDOWS\SETVER.EXE

AUTOEXEC.BAT:

@ECHO OFF
SET TMP=C:\WINDOWS\TEMP
SET TEMP=C:\WINDOWS\TEMP
SET PROMPT=$p$g
SET winbootdir=C:\WINDOWS
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
SET SBPCI=C:\PROGRA~1\CREATIVE\AUDIO\DOSDRV
SET BLASTER=A220 I7 D1 H7 P330 T6
IF "%CONFIG%"=="WIN" GOTO WIN
C:\DOSDRV\SBLOAD
C:\DOSDRV\SBINIT.COM
GOTO %CONFIG%
:EMC
LH C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD0001 /E
GOTO EM
:XMC
:CMC
C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD0001
:EM
:XM
IF NOT "%CONFIG%"=="CMC" C:\WINDOWS\SMARTDRV.EXE /X
:CM
REM CuteMouse doesn't need LH as it gets loaded into UMB automatically
C:\DRIVERS\CTMOUSE.EXE /R2
GOTO DONE
:WIN
C:\WINDOWS\WIN.COM
:DONE

I reduced the number of BUFFERS to make disk caching utilities more effective and added an option to start Windows 98. 😀

Note that I don't know if there are any ROM chips in regions that could be used for UMB and the EMS page frame.

CHAAAAAAAAD
That's awesome bro!
I'll try that out a bit later

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 61 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie

Okay everything works with the new config and autoexec. I tested Blake Stone, Quake, Wolfenstein 3d, Hexen, Strife, Blood. They all work. EPIC. The only game that doesn't like the new configs is Duke 3d atomic. I have no idea why but it won't start up. It just hangs. I don't know what to do for that. I would like to thank everyone involved in this topic for all the epic help. My knowledge of Dos and how it handles memory has expanded a lot. Also my pc has become way better with memory and ram management. Thank yall

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 62 of 73, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

You're welcome. BTW, just out of curiosity, what are your current configs and memory layout?

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community

Reply 63 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie
The attachment 20240705_193349.jpg is no longer available
The attachment 20240705_193345.jpg is no longer available

My current configuration and autoexec are the ones from Gmlb256 from earlier. This is my memory layout

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 64 of 73, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

Uhh...I think your memory config is poor. 🙁 You can go to https://dosprograms.info.tt/indexall.htm and download more efficient drivers for things such as a MSCDEX replacement. They're under Utilities. You already have most of the stuff from there, though. 😉 I really think you should try QEMM. It is much more efficient in memory-handling than the standard DOS issues. Also, QEMM's MANIFEST utility reported to me 64k free on my system that EMM386 missed. Try it out!

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community

Reply 65 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie

Awesome bro
I'll try this out

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 66 of 73, by Gmlb256

User metadata
Rank l33t
Rank
l33t
Harry Potter wrote on 2024-07-05, 23:43:

You can go to https://dosprograms.info.tt/indexall.htm and download more efficient drivers for things such as a MSCDEX replacement.

Not all of them are necessarily better, replacing MSCDEX with SHSUCDX reduces compatibility.

I see that the OP's computer can't easily get more UMB. Using XHDD instead of SMARTDRV should free conventional memory.

VIA C3 Nehemiah 1.2A @ 1.46 GHz | ASUS P2-99 | 256 MB PC133 SDRAM | GeForce2 GTS 32 MB | Voodoo2 12 MB | SBLive! | AWE64 | SBPro2 | GUS

Reply 67 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie

What is smartdrv for in the first place?

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 68 of 73, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

Smartdrv is a disk cache: it is designed to speed up disk accesses by storing information temporarily in RAM.

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community

Reply 69 of 73, by Cursed Derp

User metadata
Rank Oldbie
Rank
Oldbie

So how would I set up xhdd? I have the files now

I am as smooth as a gravy train with flaming biscuit wheels.

Reply 70 of 73, by Gmlb256

User metadata
Rank l33t
Rank
l33t

I made changes to the configuration files that you provided on the Duke Nukem 3D thread so XHDD will be loaded with 12 MB of disk cache size. I also reduced the number of lines and fixed an oversight with the SB 128 drivers as they only work when a compatible EMM is loaded.

This assumes that XHDD.SYS is extracted on C:\DOSDRV.

CONFIG.SYS:

[COMMON]
DOS=HIGH,UMB,NOAUTO
FILESHIGH=30
BUFFERSHIGH=10
STACKS=9,256
FCBSHIGH=4,0
LASTDRIVEHIGH=H

[menu]
menuitem=EMC, Expanded memory + Mouse + CD-ROM
menuitem=XMC, Extended memory + Mouse + CD-ROM
menuitem=CMC, Conventional Memory only + Mouse + CD-ROM
menuitem=EM, Expanded memory + Mouse
menuitem=XM, Extended memory + Mouse
menuitem=CM, Conventional memory only + Mouse
menuitem=WIN, Windows 98

menudefault=EMC,10

[EMC]
INCLUDE=EM
DEVICEHIGH=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[XMC]
INCLUDE=XM
DEVICE=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[CMC]
INCLUDE=CM
DEVICE=C:\DRIVERS\VIDECDD.SYS /D:MSCD0001

[EM]
REM F000-FFFF region is excluded, it is reserved for the BIOS ROM
REM and taking it to get extra UMB affects stability when using QEMM.
DEVICE=D:\QEMM\QEMM386.SYS RAM I=B000-B7FF X=F000-FFFF
DEVICEHIGH=C:\DRIVERS\XHDD.SYS /H /P /S12
DEVICEHIGH=C:\WINDOWS\SETVER.EXE

[XM]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DRIVERS\XHDD.SYS /H /P /S12
DEVICE=C:\WINDOWS\SETVER.EXE

[CM]
DEVICE=C:\WINDOWS\SETVER.EXE

[WIN]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\IFSHLP.SYS
DEVICE=C:\WINDOWS\SETVER.EXE

AUTOEXEC.BAT:

@ECHO OFF
SET TMP=C:\WINDOWS\TEMP
SET TEMP=C:\WINDOWS\TEMP
SET PROMPT=$p$g
SET winbootdir=C:\WINDOWS
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
SET SBPCI=C:\PROGRA~1\CREATIVE\AUDIO\DOSDRV
SET BLASTER=A220 I7 D1 H7 P330 T6
GOTO %CONFIG%
:EM
:EMC
C:\DOSDRV\SBLOAD
C:\DOSDRV\SBINIT.COM
IF "%CONFIG%"=="EMC" LH C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD0001 /E
GOTO XM
:XMC
:CMC
C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD0001
:XM
:CM
REM CuteMouse doesn't need LH as it gets loaded into UMB automatically
C:\DRIVERS\CTMOUSE.EXE /R2
GOTO DONE
:WIN
C:\WINDOWS\WIN.COM
:DONE

VIA C3 Nehemiah 1.2A @ 1.46 GHz | ASUS P2-99 | 256 MB PC133 SDRAM | GeForce2 GTS 32 MB | Voodoo2 12 MB | SBLive! | AWE64 | SBPro2 | GUS

Reply 71 of 73, by CoffeeOne

User metadata
Rank Oldbie
Rank
Oldbie
Cursed Derp wrote on 2024-07-04, 16:39:

Here's my autoexec and config.sys

My personal recommandation:
Don't optimize the conventional memory when you start Windows 98. I tend to keep it the same as it was after installation.

So you have already a boot menu, that is perfect. Then make a config for Windows 98, where you optimize nothing and start windows explicitetly via autoexec.bat, so you have to modify msdos.sys. There are tons of threads here on Vogons about this topic.
The other configs you can use for pure DOS 7.1, so you can have a config for only XMS and one with EMM386. Optimize those DOS only configs.

EDIT: Gmlb256 posted a nice config, do it like that!

Reply 72 of 73, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

BTW, if you want UMBs but no EMS, I think the NOEMS switch will disable that on QEMM. Same with EMM386.

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community

Reply 73 of 73, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

It should also give you 64k from the EMS frame plus save the memory otherwise used by EMS support.

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community