delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/20/15:37:01

From: oak9755 AT silver DOT sdsmt DOT edu (Olav Kindt)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Far Pointers in Protected Mode
Date: 20 Oct 1996 18:33:55 GMT
Organization: South Dakota School of Mines and Technology
Lines: 33
Distribution: world
Message-ID: <54draj$qs4@news.sdsmt.edu>
References: <54bsg5$c6b AT news DOT stealth DOT net>
NNTP-Posting-Host: silver.sdsmt.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mohan Khurana (mohan AT stealth DOT net) wrote:
: Lets say I wanted to fill an area of the screen.  Under something like
: Borland C, I would just use 
: 
: memset(0xA000, 15, 0xffff)
: 
: right?
: 
: This doesn't seem to work in DJGPP.  I was thinking about setting each
: pixel individually in a for loop using _farnspokeb, but this is slow.
: Is there a better way?  I want to set chunks of data to a certain
: value.  I checked farptr.h, but there wasn't really much documentation
: in the file.  I also checked the info documentation and the
: information about far pointers, but the information on the individual
: functions wasn't very helpful.
: 
: Thanks to all who help.
: 


Hi there, 

I'm using inline assembly for this part. you can load the es reg with the
_dos_ds selector, and then use rep stosl (or byte, word). I used this
succes fully for a dillscreen routine. 

For more information please email me, and maybe i can help you with some
source code.

 -- 
Olav Kindt		     | email:	oak9755 AT silver DOT sdsmt DOT edu
737 E. Anamosa Street #103   |		xedb_oak AT debet DOT nhh DOT no
Rapid City SD-57701	     | 		MAIL me man.......

- Raw text -


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