VOGONS


First post, by Brian

User metadata
Rank Newbie
Rank
Newbie

I am using a 15 year old Dos app, which is no longer supported by the manufacturer. It currently runs on MS Dos 5.0. This app has a very high memory requirment and also requires specific memeory to be available to it. Under MS DOs 5.0 the config.sys it requires is as follows

DEVICE = c:\dos\himem.sys
DEVICE = c:\dos\emm386.exe noems i=a000-b7ff x=e000-efff
DOS = high, umb
FILES = 30
BUFFERS = 30
BREAK = off
DEVICE = c:\dos\smartdrv.sys 4000
SHELL = c:\command.com /p /e:1024

Which generates the following mem/c setup.

Conventional Memory :

Name Size in Decimal Size in Hex
------------- --------------------- -------------
MSDOS 14160 ( 13.8K) 3750
HIMEM 1184 ( 1.2K) 4A0
EMM386 9424 ( 9.2K) 24D0
SMARTDRV 38208 ( 37.3K) 9540
IC 112 ( 0.1K) 70
COMMAND 3392 ( 3.3K) D40
FREE 64 ( 0.1K) 40
FREE 686880 (670.8K) A7B20

Total FREE : 686944 (670.8K)

Upper Memory :

Name Size in Decimal Size in Hex
------------- --------------------- -------------
SYSTEM 65536 ( 64.0K) 10000
24336 ( 23.8K) 5F10
FREE 31776 ( 31.0K) 7C20
FREE 42128 ( 41.1K) A490

Total FREE : 73904 ( 72.2K)

Total bytes available to programs (Conventional+Upper) : 760848 (743.0K)
Largest executable program size : 686736 (670.6K)
Largest available upper memory block : 42128 ( 41.1K)

32505856 bytes total contiguous extended memory
0 bytes available contiguous extended memory
11283456 bytes available XMS memory
MS-DOS resident in High Memory Area

Could I get some help on the best configuration to use in the dosbox.conf file to deliver the same memory setup. I am using dosbox 0.72.

Appreciate any help.

Reply 1 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Set ems=false in your dosbox.conf, gives 634k+127k compared to 670k+72k.

Reply 2 of 13, by Brian

User metadata
Rank Newbie
Rank
Newbie

I am trying to get > 670K of conventional memory and >72.2K UMB available in Dossbox. My current setting are xms= true, ems=false and umb=true which gives me 634K of conventional and 127K of UMB. Are there any other setting changes I can make to get more convertional memory ? Appreciate any help.

Reply 3 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

impossible. also in real dos.
the limit is 640 kb

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 13, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Mod Edit: Brian, I have merged your new thread with the old one.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 5 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

impossible. also in real dos.
the limit is 640 kb

That's a nasty trick here, which works if no ebda etc. is present:
using the video area as ram (emm386 and similar can provide
ram pages in that area). Even under real dos this was a very
fragile thing to do.

I am trying to get > 670K of conventional memory

Why?
Run your program in dosbox and post here what exactly it states
instead of doing some fancy preparation which might be unnecessary.

Reply 6 of 13, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

there are computers with a BIOS that lets you adjust the amount of conventional memory above 640KB...

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 7 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes but they can't provide continuous 640k+ ranges then unless they have
a similar technique of shadowing the graphics area. So this would only
be useful for TSR loading, not this case here (if it's really about an app
needing that much memory).

Reply 8 of 13, by Brian

User metadata
Rank Newbie
Rank
Newbie

Hi Wd and all. Unfortunately this app does require an inordinate amount of DOS memory. As requested I ran the App in Dosbox and it does run error free UNTIL I try some high memory usage activities like generating some reports. It then crashes for a “No more heap memory left”

Is there any way to configure Dosbox to mimic the memory setup in the config.sys at the top of this post ?

Reply 9 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It then crashes for a “No more heap memory left”

Try with ems=false and xms=true, then use "LH app.exe" to start the app
and see if it works for large memory requests.

Is there any way to configure Dosbox to mimic the memory setup in the config.sys at the top of this post ?

No, and i think it even does not work in Bochs as they have the ebda right
below the graphics area, so the memory block would not be continuous.
But you might want to try it with bochs nevertheless.

Reply 10 of 13, by Brian

User metadata
Rank Newbie
Rank
Newbie

Wd, tried with LH and it worked. System didn't crash on high memory tasks. I now have one remainig problem though, this app uses a ISA card http://www.digi.com/products/serialcards/pcx.jsp to obtain 8 serial ports. The app has the required drivers for this card built into its code. So under dos when you launch the app you can access the 8 serial ports. However under Dosbox none of the serial ports are functioning. Any idea how to enable them under dosbox. What edits would be required to dosbox.conf ?

Thanks for all your help to date .

Reply 11 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Now you've worked on the memory issue for nothing... 🙁

1+1=10

Reply 12 of 13, by Brian

User metadata
Rank Newbie
Rank
Newbie

what's the limitaion of dosbox which prevents this card from functioning ?

Reply 13 of 13, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

DOSBox don't provide direct access to the underlying hardware. Remember, DOSBox can run on almost everything: PC's, Mac's, XBox 360, Playstation Portable (PSP), etc, etc, and the underlying hardware in those boxes is very different.

DOSBox can fully(?) emulate access to certain common PC hardware like sound cards and video which games require to function, and limited access to more rare devices like serial ports. But it does not provide direct hardware access to network cards, or in your case specialized ISA cards.

However.... with enough financial incentive it might be possible to talk one of the developers into providing the required access for your card.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32