PDA

View Full Version : Loading dos high on a XT



RuudB
July 17th, 2012, 12:40 AM
Hallo allemaal,


I expanded my XT with 128 KB of SRAM in the D- and E-area. For the schematics please see: http://www.baltissen.org/images/umb4xt.png
Using the right UMB driver I managed to LOADHIGH various drivers like ANSI.SYS and my mouse driver. But it didn't work out for DOS. It seems that HIMEM.SYS is reponsible and that program won't work on a XT.

My question: does anyone have an idea how I can persuade DOS to load itself high in my UMB memory?

One idea of myself: emulating INT 15h in one or another way but then: how to tell DOS to load itself into the UMB area instead of the not-existing HMA area?


Groetjes, Ruud Baltissen
www.Baltissen.org

nestor
July 17th, 2012, 03:54 AM
Using PC-DOS 2000, USE!UMBS and DOSMAX I managed to load DOS in UMB memory with a self-made ISA ram card (similar to yours I think, but mine used two 64kb SRAM ICs and a 74LS138 )


http://img215.imageshack.us/img215/7984/20120117152513675.jpg

sergey
July 17th, 2012, 03:20 PM
Using PC-DOS 2000, USE!UMBS and DOSMAX I managed to load DOS in UMB memory with a self-made ISA ram card (similar to yours I think, but mine used two 64kb SRAM ICs and a 74LS138 )


nestor, can you please provide more details? :-)

Here is my schematics (https://sites.google.com/a/malinov.com/www/Home/sergeys-projects/sergey-s-xt/prototype/PCRAMExtension-Schematic.pdf?attredirects=0&d=1)for memory extension card. It allows mapping of up to 192 KiB memory (from 0C0000h to 0EFFFFh) to UMB, that can be enabled on 32 KiB block basis (depending on other devices that use high memory). It also adds memory in 80000h to 9FFFFh range (from 512KiB to 640 KiB), this could be disabled if needed.

Hopefully your method will make it work too. Also it is interesting if it is possible to have "holes" in UMB.

Chuck(G)
July 17th, 2012, 03:40 PM
Also, look at the 1Meg mod for the 5160 using 4 banks of 256K DRAM and replacing the mapping ROM. It gives the same 128K between D0000 and EFFFF without adding any cards.

tipc
July 17th, 2012, 06:26 PM
I thought DOS already loaded high up in ram.

The non-resident portion that is.

Ok never mind never mind. I didn't post this.

ibmapc
July 17th, 2012, 09:05 PM
Also, look at the 1Meg mod for the 5160 using 4 banks of 256K DRAM and replacing the mapping ROM. It gives the same 128K between D0000 and EFFFF without adding any cards.
I can testify for this! The 1MegXT mod works great. I get the same results as Nestor Using PC-DOS 2000, USE!UMBS and DOSMAX. The only drawback I can see is that we haven't figured out how to make it work on any of the XT clones.

Anyone with a True Blue IBM XT 5160 or 5155 interested in the 1megXT mod, let me know, either here or by PM. I can provide the GAL and Adapter for cost of shipping.

RuudB
July 17th, 2012, 09:51 PM
Also, look at the 1Meg mod for the 5160 using 4 banks of 256K DRAM and replacing the mapping ROM.
I did the hack with an 8 MHz board. But my 10 MHz board has one big IC taking care of 90% of the functions of the board, including managing the DRAM. And that was the reason to build this card.
An advantage of this card: it doesn't needed to be initialised. If you don't do that with the DRAM, you surely get a parity error the first moment you access it. That's what happened I used USE!UMBS the first time with my 8 MHz board. I solved this problem by letting my BIOS taking care of this. How did you solve it?

Chuck(G)
July 17th, 2012, 09:54 PM
I don't remember, but ibmapc certainly would--or you can search for the 1Meg thread here.

ibmapc
July 17th, 2012, 10:16 PM
I did the hack with an 8 MHz board. But my 10 MHz board has one big IC taking care of 90% of the functions of the board, including managing the DRAM. And that was the reason to build this card.
An advantage of this card: it doesn't needed to be initialised. If you don't do that with the DRAM, you surely get a parity error the first moment you access it. That's what happened I used USE!UMBS the first time with my 8 MHz board. I solved this problem by letting my BIOS taking care of this. How did you solve it?
Chuck wrote a little device driver 9696
First line in config.sys(or one of the first before use!umbs.sys) would be "device=c:\clearmem.sys d000 2000" .
This will clear d000 thru efff (2000 paragraphs starting at d000), taking care of the parity error problem.

Here's the 1MegXT thread (http://www.vintage-computer.com/vcforum/showthread.php?28128-HIMEMV2-or-equivillent-PROM)that Chuck reffed to. It's a little long but there's some good info in there.

nestor
July 18th, 2012, 12:34 AM
nestor, can you please provide more details? :-)

My memory extension card is very simple: a 74LS138 is used to chip-select a 64KB SRAM IC for D0000-DFFFF area and other 64 KB SRAM IC for the E0000-EFFFF area. That gives a 128 contiguous UMB memory, but the OS can't use them directly. Here enters USE!UMBS.SYS, a free driver that enables UMB using RAM in the D0000-EFFFF area. Once loaded, you can use loadhi and devicehigh to load drivers and trs in upper memory.

To load DOS itself in UMB, I use DOSMAX (http://www.uwe-sieber.de/files/dosmax21.zip). It is a free driver to load DOS in UMB memory.

RuudB
July 18th, 2012, 10:28 AM
Here enters USE!UMBS.SYS
IIRC I got the software from the developer himself in 1991. But just out of curiousity I searched the internet for it but couldn't find it. If there is interest, I'll put it on my site so others can download it. FYI, my version includes the source code.


To load DOS itself in UMB, I use DOSMAX (http://www.uwe-sieber.de/files/dosmax21.zip).
I found DOSMAX17 (www.cs.cmu.edu/afs/cs/project/clisp/hackers/wlott/work/pcstuff/memory/dosmax17.zip).
One question: how does your CONFIG.SYS and AUTOEXEC.BAT look like?

sergey
July 18th, 2012, 01:25 PM
IIRC I got the software from the developer himself in 1991. But just out of curiousity I searched the internet for it but couldn't find it. If there is interest, I'll put it on my site so others can download it. FYI, my version includes the source code.


I found DOSMAX17 (www.cs.cmu.edu/afs/cs/project/clisp/hackers/wlott/work/pcstuff/memory/dosmax17.zip).
One question: how does your CONFIG.SYS and AUTOEXEC.BAT look like?

I found USE!UMBS here: http://cd.textfiles.com/cream/cream06/utility/ (look for use_umbs.zip file)
It comes with the source... the only thing that I will improve (if and when I have time) is command line options for specifying UMB memory ranges. Now it's just hard coded.

RuudB
July 18th, 2012, 09:30 PM
the only thing that I will improve (if and when I have time) is command line options for specifying UMB memory ranges.
I already was working on a version that checks the memory itself. Not handy but I simply didn't think about the command line option. I only thought about when seeing the DOCs that goes with DOSMAX yesterday evening. From next week on I have time, so could you do me a favour and point me to an URL or give me instructions how I can check the command line using assembly?
Many thanks! Results will be freeware of course.

sergey
July 19th, 2012, 08:26 AM
I already was working on a version that checks the memory itself. Not handy but I simply didn't think about the command line option. I only thought about when seeing the DOCs that goes with DOSMAX yesterday evening. From next week on I have time, so could you do me a favour and point me to an URL or give me instructions how I can check the command line using assembly?
Many thanks! Results will be freeware of course.

The command line (anything after DEVICE=...) is passed with the driver initialization call to the driver. The address to command line is stored in the request header starting from offset 12h (decimal 18 ), it is a 4-byte pointer with segment and offset. See this (look for "driver initialization call") (http://www.drdobbs.com/article/print?articleID=184402277&dept_url=/cpp/).

You'll need to implement parsing of the command line (validate its correctness, translate ASCII/hex to binary). Discussed in other thread 2M-ABIOS/2M-XBIOS floppy BIOS extension has a code for parsing device driver's command line. The source code can be found here (http://www.lanet.lv/ftp/simtelnet/msdos/diskutil/2m30src.zip) (note: comments in the code are in Spanish). Perhaps this can be used as an example of command line parsing.

The USE!UMBS comes with memory auto-detection utility (TEST!UMB?!), but it looks not very reliable, e.g. it might report VGA memory or shared memory of an Ethernet card as UMBs, but I doubt anyone will want to use this memory for UMB purpose. So I don't think it is a great idea to implement auto memory detection in the driver itself.

nestor
July 19th, 2012, 10:15 AM
I'm with sergey, auto-detection would be prone to misidentify unusable UMB RAM and honestly, the few people that are interested in using UMB in XT know exactly the amount and location of the UMB blocks.

Here are the contents of my actual AUTOEXEC.BAT / CONFIG.SYS files:


@ECHO OFF
SET COMSPEC=C:\COMMAND.COM
SET PATH=C:\DOS
SET TEMP=C:\DOS
LH C:\DOS\MOUSE.COM
LH C:\DOS\DOSKEY.COM


FILES=30
BUFFERS=20
COUNTRY=034,850,C:\DOS\COUNTRY.SYS
DOS=UMB,HIGH
DOSDATA=UMB
DEVICE=C:\USE!UMBS.SYS
DEVICE=C:\APPS\DOSMAX\DOSMAX.EXE /R+ /N+ /P-
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\DOS\DISPLAY.SYS CON=(,,1)
DEVICEHIGH=C:\APPS\2M\2M-XBIOS.EXE A:4 B:0 /13
SHELL=C:\APPS\DOSMAX\SHELLMAX.COM C:\COMMAND.COM C:\ /E:256 /P

RuudB
July 19th, 2012, 11:03 AM
So I don't think it is a great idea to implement auto memory detection in the driver itself.
I was just thinking of an auto detect limited to the range covered by my own card; the D- and E-area.

RuudB
July 19th, 2012, 11:09 AM
Here are the contents of my actual AUTOEXEC.BAT / CONFIG.SYS files:
Thank you!

Krille
April 22nd, 2015, 12:21 PM
Those of you who use USE!UMBS.SYS might be interested to know that I have added command line parameter support and also optimized it to reduce memory usage. My version (source+binary) is in the v2.1 folder in the attached zip-archive. The files in the archive root is the original version (v2.0).

23854

Example CONFIG.SYS command line for a single 128 KB UMB starting at segment D000h:

DEVICE=USE!UMBS.SYS D000-EFFF

Try it and let me know what you think.

MennoJoshua
April 28th, 2015, 07:08 AM
Just to be clear, loading DOS=HIGH means loading into the High Memory Area (the part right above 1Mb), which doesn't exist on an 8086.

DEVICEHIGH and LOADHIGH rather confusingly load into the Upper Memory Area, not the HMA.

1541
December 14th, 2016, 11:56 AM
Those of you who use USE!UMBS.SYS might be interested to know that I have added command line parameter support and also optimized it to reduce memory usage.
Try it and let me know what you think.

I am now using your updated version with an IBM PC 5150 which has two original IBM 64/256KB Memory Expansion Option cards in it. These cards actually allow putting RAM into the A000-AFFF segment (typically used by EGA and VGA graphics cards). That configuration can be used if one has a CGA, Hercules or MDA display adapter.

Maybe you could implement the functionality of CLEARMEM.SYS into USE!UMBS.SYS with a parameter like /ZEROFILL which would write zeroes into the configured upper memory blocks.

Krille
January 6th, 2017, 03:05 AM
I am now using your updated version with an IBM PC 5150 which has two original IBM 64/256KB Memory Expansion Option cards in it. These cards actually allow putting RAM into the A000-AFFF segment (typically used by EGA and VGA graphics cards). That configuration can be used if one has a CGA, Hercules or MDA display adapter.

Maybe you could implement the functionality of CLEARMEM.SYS into USE!UMBS.SYS with a parameter like /ZEROFILL which would write zeroes into the configured upper memory blocks.

Thanks for the feedback and apologies for not responding sooner! Back when I did this I had apparently missed the discussion regarding parity errors and the need for something like Chuck's CLEARMEM.SYS, not to mention the fact that other people had already added command line parameter support. :rolleyes:

Also;

Example CONFIG.SYS command line for a single 128 KB UMB starting at segment D000h:

DEVICE=USE!UMBS.SYS D000-EFFF
I don't know what I had been smoking that day because this command line will leave the last paragraph (16 bytes) unused. The correct line should look like this;

DEVICE=USE!UMBS.SYS D000-F000
Anyway, I've added the code to initialize the UMBs as requested (no need for any parameter though) and have also done some additional size optimizations.

35261

1541
January 18th, 2017, 01:33 AM
Thank you, this is now even more user-friendly and highly useful utility.

I have found out that IBM PC 5150 continues BIOS memory test to 704 kilobytes with undocumented SW2 DIP switch settings ON ON OFF ON OFF and DOS automatically uses all of that as conventional memory. This is an alternative way to utilize 64 kilobytes of RAM at segment A0000.