[comp.lang.pascal] XMS code

tedm@agora.rain.com (Ted Mittelstaedt) (06/30/91)

In article <1991Jun28.155646.861@vax.oxford.ac.uk> you write:
>Hello All,
>Two Little problems
>
>1) Himem.sys and block copying
>
>I have written a progam in Turbo Pascal 5.0 which makes use of extended
>memory by copying the bits I need into the HMA as they are needed and
>copying them out as they are not needed. I use a most frequently used
>algorythm so excessive transfer is not done. And it works a treat- The
>problems is that it still has to do a lot of swapping and I use the XMS
>move block command

Well, I think your stuck using HIMEM.SYS, as DOS 5.0 is loaded and run in the
HMA, programs are not going to be able to make the assumption that the HMA will
be open in the future.  Why don't you get a copy of the Microsoft XMS LIMA 
standard from MicroSquishey and read that?  I think you can use HIMEM calls to
place data anywhere in extended memory you want, without fooling with switching
the processor into various modes.
tedm@agora.rain.com