cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/05/23:04:21

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: using MK_FP in djgpp
Date: Sat, 02 Aug 1997 11:51:51 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 30
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33E35797.4556@cornell.edu>
References: <19970801234501 DOT TAA18453 AT ladder02 DOT news DOT aol DOT com>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0027.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Egg brains wrote:
> 
> how would i use
> UCHAR *vga = MK_FP(0xA000, 0);
> in djgpp WITHOUT simulating MK_FP in other words i want to know how to use
> 
> memset(vga, 0, 0xffff);
> without having to use MK_FP (or a simulation)... i tried
> memset(__tb & 0xA000, 0, 0xffff);
> this just made a nasty error...
> 
> any and all help would be appreciated... thanx --- Paul


it is not clear to me what you mean by "simulating MK_FP". in any case,
refer to chapter 17 in the FAQ.

for functions to move data between virtual memory and commercial memory,
see the farpoke/farpeek, movedata and dosmemput/dosmemget functions.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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