Mail Archives: djgpp/1995/12/09/01:52:08
>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 -