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

Date: Sat, 9 Dec 1995 00:59:19 -0500
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: wroberts AT aug DOT com
Subject: Re: Graphics in V2

>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
>
>

Thanks for the tip, Wes.  I just always drop down to ASM.  Maybe I should
pay more attention to what the compiler is outputing. May save me some time! :)

Wayne

- Raw text -


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