dr_st wrote on 2024-04-22, 16:24:The number after XMSDSK shows how much memory to use, not how much to leave free. […]
Show full quote
xtreger wrote on 2024-04-08, 12:46:
Even after running xmsdsk 50000 /t /y command, ALADDIN shows the xms allocation error. Also I don't get why this 50 megs of memory gets assigned to the "Used" column as against "Free".
The number after XMSDSK shows how much memory to use, not how much to leave free.
In your case, since your HIMEM.SYS shows 2GB of RAM (is that the actual memory you have installed?), you should probably use something like XMSDSK 2075000, assuming it supports such sizes.
I also recall a discussion which showed you can use built-in Windows capabilities to create a shortcut to your DOS program, which will limit the XMS/EMS size visible to the program. See here: Re: Dune II Refuses to Run on Win98SE and here: Re: Dune II Refuses to Run on Win98SE
Sorry for the late reply. The links you shared were very informative. I tried those approaches to get Aladdin to run in Win98SE native DOS box. Aladdin needs a minimum of 512 EMS and 1024 XMS and 570K conventional to run. But for the EMS option to even be visible in the Memory tab of DOS shortcut properties, I have to write DEVICE=C:\WINDOWS\HIMEM.SYS and DEVICE=C:\WINDOWS\EMM386.EXE. Here are my observations:
1. There is no EMMExclude or EMMPage clause in the 386Enh section of my system.ini
2. setsnd properly auto-detects the sound card settings (SBPro, IRQ 5, DMA 1, 220)
3. Below 1024 XMS, game doesn't run saying that XMS is insufficient
4. Between 512 and 1024 EMS (and 1024 XMS), game crashes with "Music error... 001"
5. At 1024 EMS, 1024 XMS, 570 conventional memory and rest at "Auto", the game runs but the sound is just some machinegun-like white noise (call this version 1)
6. If I enable high quality music in setsnd, then I still get machinegun-like noise (call this version 2), but it's slightly different from what I hear in point 5 (ver 1)
7. If with high quality music enabled, I change DEVICE=C:\WINDOWS\EMM386.EXE to DEVICE=C:\WINDOWS\EMM386.EXE RAM 1024, then I again hear the version 1 white noise
So from what I can gather, memory config (even if it's above minimum specs for Aladdin) affects music/sound in a major way. I'm looking for that combo of XMS/EMS/conventional/config.sys settings that will actually run the music and sounds properly..