Date: Tue, 20 Aug 1996 13:27:55 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: Ian Stevenson cc: djgpp AT delorie DOT com Subject: Re: DJGPP Port access In-Reply-To: <3099.9608191516@vvl.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 19 Aug 1996, Ian Stevenson wrote: > >If I use DJGPP to compile a command line program for MS-DOS, which includes >accesses to ports (i.e. _inp, _outp or their equivalents) will this program >run correctly on the WindowsNT command line? > >If so, would it still work if compiled for NT (using RSXNT is that the name?) Probably yes. When running with CWSDPMI, djgpp programs have IOPL set to 3 which means that all the I/O is not simulated. Under WinNT however, I suspect that the DPMI server will emulate your in, out etc. instructions produced by _inp, _outp .... functions. Anyway, the code should work as expected. OTOH, I think it depends on what hardware you're accessing and on what level. There are, undoubtedly, areas that are being kept closed for the "ordinary" application programs under WinXX. Greetings, Mark /************************************************************/ /** Maybe it was infatuation or the thrill of a chase? **/ /** Maybe you were always beyond my reach and my heart **/ /** was playing safe? ***********/ /** But was that love in your eyes I saw, **/ /** or the reflection of mine? **/ /** I'll never really know for sure, **/ /** You never really gave me time! **/ /** Won't you give me that time? **/ /** "Cindirella Search" **/ /********************************/ Visit my homepage: http://ananke.amu.edu.pl/~grendel