www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/20/13:00:56

From: "Ghalos" <greg AT holdridge7 DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: New convert has a question
Date: Thu, 20 May 1999 09:37:19 +0100
Organization: Customer of Planet Online
Lines: 24
Message-ID: <7i0hg3$i76$1@news7.svr.pol.co.uk>
References: <7hv665$pni$1 AT news6 DOT svr DOT pol DOT co DOT uk> <37433E36 DOT 76780C62 AT cartsys DOT com>
NNTP-Posting-Host: modem-30.helium.dialup.pol.co.uk
X-Trace: news7.svr.pol.co.uk 927189315 18662 62.136.0.158 (20 May 1999 08:35:15 GMT)
NNTP-Posting-Date: 20 May 1999 08:35:15 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

  Thanks a lot.  Bye for now

--
   I'd give my right arm to be ambidextruous,
                          Ghalos
Nate Eldredge wrote in message <37433E36 DOT 76780C62 AT cartsys DOT com>...
>
>Far pointers are quite safe and reasonably fast:
>
>_farpokeb(_dos_ds, 0xa0000 + x + (y * 320), val);
>
>If you have a buffered graphics algorithm (draw to a memory array and
>blit to the screen), you can use dosmemput; that's about as fast as you
>can get.
>
>[Btw: Interestingly, GCC generates better code for `y * 320' than for
>`(y << 6) + (y << 8)'.  Try them and see.  Hint: The `lea' instruction
>can multiply by five!]
>--
>
>Nate Eldredge
>nate AT cartsys DOT com


- Raw text -


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