delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/19/21:34:29

From: mohan AT stealth DOT net (Mohan Khurana)
Newsgroups: comp.os.msdos.djgpp
Subject: Far Pointers in Protected Mode
Date: Sun, 20 Oct 1996 03:33:40 GMT
Organization: Stealth Communications, NYC.
Lines: 17
Message-ID: <54bsg5$c6b@news.stealth.net>
NNTP-Posting-Host: mohan.nyc.stealth.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


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