Mail Archives: djgpp/1998/04/27/09:18:48
hi !
In win95 you use PIF to run dos programs. IN the pif settings you can
set up, how much memory do you need for that program. You can select
AUTOMATIC for XMS and all the settings must be AUTOMATIC, and it will
solove the problame. You can distribute a win95 pif with your program.
The other problame: The memory mapping. If you use linear frame buffer,
you can detect its phisical address. But in win95 it is mapped to
somewhere. You have to mapp it to another place, end get another pointer
for that. So you have to mapp itt with DPMI.
__dpmi_phisical_mapping() <- I cannot remembet exactly the name of the
function. You can see the %DJGPP%/include/dpmi.h
Another problame:
The soundblaster DMA. Dpmi copies the data to another place, and
sets up the dma for there. It takes some time, so your sound will be
shit.(if you use dma for that) And you cannor modify it after the dma
transfare started. (because it is copyed yet)
But if Sound Blaster 16 ASP detected, you can use Autoinit DMA.
I dunno why, but it will work fine.
-- Archee/CoNTRACT CODER ( 01dsolt AT vpg DOT hu )
oldnikk:stonee,sutyi
web: http://gondolat.vpg.hu/~01dsolt
On Sat, 25 Apr 1998, John Kismul wrote:
> I've created this game with DJGPP, but whenever I try to run it
> through Windows95 it complains about that there's not enough DPMI
> memory available, even though I've got 60MB available.
> It runs fine through DOS with 40MB available.
>
> Anyone got any suggestions?
>
- Raw text -