delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/07/22/13:39:24

NNTP-Posting-Date: Tue, 22 Jul 2003 11:34:53 -0500
From: "Teece" <tom_cip_11551 AT nospamatall DOT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: New to djgpp. Questions about protected mode, etc.
Date: Tue, 22 Jul 2003 09:34:52 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Message-ID: <3iGdna0c9-Mz-oCiU-KYvA@giganews.com>
Lines: 121
X-Trace: sv3-GmYAFjutpE7mLfM1vEK5nqfT9tHZIzm6gh+gUUhLmRlTHpkESwPzQclF0nppHv5XhR2IPeBDQTxPh7q!p7i7wr8qkeZgIiBb1SJgQ6OIBhvFXOE6pQeeBdIE75E51999vuBKYJNPWw==
X-Complaints-To: abuse AT giganews DOT com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C35034.810BEDF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Please bear with me since I am not all that sure about how to ask the =
questions that I have.

I have an application that I want to develop for the PC with special =
hardware that will run on the PCI bus. I will need to send data from the =
program directly to the hardware. It is not necessary that I use a =
sophisticated operating system like XP or even any version of Windows. =
Therefore I can avoid the difficulty of writing Windows device drivers =
for the new hardware, etc.

I suppose that I could go a couple of ways. One way would be to use good =
old DOS, which does not run in protected mode, and use DJGPP (or VC1.52, =
I think) to obtain an executable.  Since DOS does not know about =
protected mode I would not cause a segmentation fault when I directly =
access the PCI hardware. Is this correct?

I was reading in the DJGPP documentation that DJGPP has a DOS extender. =
This was described as a layer of software that "traps the call, switches =
the CPU to real mode, reissues the call, waits for the service to do its =
thing, then switches the CPU back into protected mode, and returns to =
the application code that called the real-mode service".=20

Does Windows have a DOS extender? Is it not possible to run old DOS =
programs on XP in what passes for a DOS emulator?=20

Does Linux have a DOS extender? Will an executable made with DJGPP run =
on Linux?

Thank You
Tom
tom_cip_11551 AT hotmail DOT com






------=_NextPart_000_000A_01C35034.810BEDF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4919.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Please bear with me since I am not all =
that sure=20
about how to ask the questions that I have.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have an application that I want to =
develop for=20
the PC with special hardware that will run on the PCI bus. I will need =
to send=20
data from the program directly to the hardware. It is not necessary that =
I use a=20
sophisticated operating system like XP or even any version of Windows. =
Therefore=20
I can avoid the difficulty of writing Windows device drivers for the new =

hardware, etc.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I suppose that I could go a couple of =
ways. One way=20
would be to use good old DOS, which does not run in protected mode, and =
use=20
DJGPP (or VC1.52, I think) to obtain an executable.&nbsp; Since DOS does =
not=20
know about protected mode I would not cause a segmentation fault when I =
directly=20
access the PCI hardware. Is this correct?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I was reading in the DJGPP =
documentation that DJGPP=20
has a DOS extender. This was described as a layer of software that =
"<FONT=20
face=3D"Times New Roman" size=3D3><FONT size=3D2>traps the call, =
switches the CPU to=20
real mode, reissues the call, waits for the service to do its thing, =
then=20
switches the CPU back into protected mode, and returns to the =
application code=20
that called the real-mode service</FONT>". </FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman"=20
size=3D3></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
size=3D2>Does Windows have a DOS extender? Is it not possible to run old =
DOS=20
programs on XP in what passes for a DOS emulator? =
</FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Does Linux have a DOS extender? Will an executable =
made with=20
DJGPP run on Linux?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thank You</FONT></DIV>
<DIV><FONT size=3D2>Tom</FONT></DIV>
<DIV><FONT size=3D2><A=20
href=3D"mailto:tom_cip_11551 AT hotmail DOT com">tom_cip_11551 AT hotmail DOT com</A></=
FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000A_01C35034.810BEDF0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019