delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/10/05:15:54

From: "Alexei A. Frounze" <see_below AT the_message_body DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: far pointers
Date: Sat, 10 Jun 2000 13:04:45 +0400
Organization: None
Lines: 60
Message-ID: <394204AD.A950D898@the_message_body.com>
References: <39405DEE DOT 89226F7B AT ccs DOT iitb DOT ernet DOT in> <m3d7lrxohw DOT fsf AT vsnl DOT net DOT in> <m3itviofxb DOT fsf AT vsnl DOT net DOT in> <39415453 DOT 5E434718 AT is DOT elta DOT co DOT il> <m3og5amiom DOT fsf AT vsnl DOT net DOT in> <200006100646 DOT JAA13833 AT mailgw1 DOT netvision DOT net DOT il>
NNTP-Posting-Host: ppp104-3.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 960627925 85712 212.188.104.3 (10 Jun 2000 09:05:25 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 10 Jun 2000 09:05:25 GMT
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: ru,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> First, you *can* run protected-mode programs on top of plain real-mode
> DOS: that's what CWSDPMI does, for example, when it runs without EMM
> or QEMM installed; the speed of the mode switch is not really relevant
> here.  This fact alone seems to go against your text, which suggest
> that V86 allows DOS and PM programs to coexist (meaning that without
> V86, such coexistence is impossible).

I'm not sure I get your point.

> Second, even in V86 mode, a protected-mode program that calls
> real-mode DOS services needs to make an explicit PM-to-RM switch, or
> it will crash.  So there's nothing in V86 per se that allows or makes
> it simpler for PM programs to coexist with DOS.  Faster, yes, but not
> simpler.

What do you exactly mean by "simpler"? 
- Simpler for a programmer who makes a PMode program w/o regard of DPMI?
- No.
- Simpler in terms of having all the control over the situation?
- Yes.

How about IRQs? They should be handled ASAP. V86 helps here. Moreover, you
know that it's good to have 2 separate IRQ handlers: one for PMode, one for
real/v86 mode.

> In fact, I think that V86 should not be mentioned at all in the kind
> of tutorial that you are writing.  It is not really important in the
> context of DJGPP, 

WOW! Never heard DJGPP has nothing about V86... It would be impossible to
have (let's say) a disk I/O in DJGPP under DOS without V86. Sure V86 is
unnoticable for a user unless he is running into problems with VESA, IPX
stuff, etc etc and he starts to think of DPMI, PMode and V86 in order to
solve a task.

To summarise, I can tell the following... While user plays with standard
LIBC only, PMode and V86 don't bother him at all. If he's going to play with
such things as interrupts (software ones or IRQs) he must think of
particular implementation of this stuff on x86 platforms. If he doesn't know
how that works either in general or with DJGPP, he can't figure out this
himself and he comes up with a question to this NG or something. But we all
know that LIBC can't hold ready-made solutions for all the things a
programmer can imagine and try to make come true. So we have to clarify
PMode, V86 and DPMI. Otherwise he would just give up or use things he
doesn't know the meaning of.

> but it does complicate things and confuses newbies.
> I don't expect many DJGPP users to write a V86 monitor ;-)

That's right. I'm one. There is not a lot of such "users". ;))

bye.
Alexei A. Frounze
-----------------------------------------
E-mail:   alexfru [AT] chat [DOT] ru
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru

- Raw text -


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