delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/24/22:21:25

Xref: news2.mv.net comp.os.msdos.djgpp:7841
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: assembly
Date: Mon, 19 Aug 1996 22:09:36 CDT
Organization: Rice University, Houston, Texas
Lines: 11
Message-ID: <32192c70.sandmann@clio.rice.edu>
References: <32177794 DOT 5CA AT unm DOT edu>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> it works under win95, but doesnt under dos (with cwsdpmi v2), it prints out 
> junk on the screen.  am i doing this right, if im not, how come it works 
> under win95?

There is a bug in your program.  The interrupt you are using expects a 
string in DS:DX, but the DPMI specification clearly states you can't expect
this to work, since DS will be undefined in the real mode reflection.

It works under Win 95, Win 3.1, and some other DPMI providers because they
also provide a built in DOS extender which copies the string for you to
a real mode buffer, then assigns DS:DX to that buffer.

- Raw text -


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