www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/08/09:22:08

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3691
Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!academ!bcm.tmc.edu!news.msfc.nasa.gov!europa.chnt.gtegsc.com!news.kreonet.re.kr!news.dacom.co.kr!news.netins.net!newsrelay.netins.net!delta.misha.net!news2.acs.oakland.edu!condor.ic.net!news.cic.net!chi-news.cic.net!uwm.edu!fnnews.fnal.gov!usenet.eel.ufl.edu!news.mathworks.com!zombie.ncsc.mil!cs.umd.edu!haven.umd.edu!hecate.umd.edu!rebel.dorm.umd.edu!wgriffin
From: wgriffin AT rebel DOT dorm DOT umd DOT edu (Wesley Griffin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Graphics in V2
Date: 7 Dec 1995 22:30:57 GMT
Organization: I need to put my ORGANIZATION here.
Lines: 19
References: <DJ4M4F DOT Fq3 AT jade DOT mv DOT net>
Nntp-Posting-Host: rebel.dorm.umd.edu
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

wroberts AT aug DOT com wrote:
:         _d_selectr = _dos_ds;    /*set up the dos mem selector */

:         offset = 0xa0000;        /*point offset to start of vid mem.*/
:         color = 2;               /*color to plot*/
:         
:         _farpokeb (_d_selectr,offset,color) /*plot a pixel in u/l corner
: of screen.*/

: >Also, are the pixel routines more complex in V2 - or is a slower 
: >addressing method done ?
: >

The _farpoke* functions compile down to one asm statement when 
optimizations are turned on, so this method is just as fast as direct 
video accesses in real mode.

--
Wes

- Raw text -


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