From: "DeHackEd" Newsgroups: comp.os.msdos.djgpp References: <74hage$hib$1 AT news DOT Eindhoven DOT NL DOT net> Subject: Re: HOWTO: DJGPP, setup CWSDPMI.exe Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Message-ID: <7WWa2.4577$Z72.1770389@tundra.ops.attcanada.net> Date: Mon, 07 Dec 1998 20:30:59 GMT NNTP-Posting-Host: 142.194.222.196 NNTP-Posting-Date: Mon, 07 Dec 1998 20:30:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com CWSDPMI is a program you run at the DOS prompt. Run on it's own, it loads itself into memory and will serve the next DPMI program that needs it (a DJGPP program) and leaves. Generally, if DPMI doesn't already exist (such as cwsdpmi already loaded or Windows is runnung) then it will try to run CWSDPMI on it's own. Don't worry about it untill it says NO DPMI (can't run cwsdpmi). Your programs are automatically set to and stuck in protected mode, unless you use a function called _djgpp_nearptr_enable() (I probably misspelt that or didn't get the underscore count right so don't take my word for it). This disables protected mode but there are a few catches to accessing memory afterward (not recommended). So don't just go after addresses you assume are correct such as video memory, because they are almost assured to crash (or worse, produce wierd effects). Read the FAQ for that sort of thing. Yes, you are in the "flat" memory model. Never use NEAR or FAR, forget segments and don't worry about mallocing too much memory (but still check for NULL). -- "DeHackEd" My Email address in the header is fake (spammers). Email me at this address: http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked ----- Original Message ----- From: P.J.A. Leerssen Newsgroups: comp.os.msdos.djgpp Sent: Monday, 07 December, 1998 2:31 PM Subject: HOWTO: DJGPP, setup CWSDPMI.exe >Hello, > > >Our VME computer is a 486 system running DOS 6.0. I've decided to use >DJGPP because it should support Protected Mode under DOS 6.0 which I >need for addressing a certain (memory mapped above 1 MB) VME-Card we are >using. > > >After reading the FAQ file I still have questions: > >Should I place CWSDPMI.exe as a devicedriver in my config.sys ? >Or are programs compiled and linked whith DJGPP dos-protected mode >executables which automatically switch to P-mode ? >Can I regard the memory-model as "flat" ?. >Perhaps someone can show me a piece of C-code simulating adressing the >card?.