delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/21/10:15:10

Date: Mon, 21 Jun 1999 17:12:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Bart Alewijnse <scarfman AT geocities DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Screen copy
In-Reply-To: <199906211407.QAA20050@deimos.worldonline.nl>
Message-ID: <Pine.SUN.3.91.990621170745.16744H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 21 Jun 1999, Bart Alewijnse wrote:

> > If the buffer is contiguous, then use library function `dosmemput'
>
> when wouln't it be? Are you implying unchained mode?

If you need to update only portions of the screen, or if the layout of 
the video memory is such that adjacent pixels don't have adjacent 
addresses, then `dosmemput' is usually less attractive, and it is
recommended to use _farnspokeX functions instead.

> > (it's documented in the library reference).  It already uses the
> > fastest assembly instructions possible.
> Including the move-the-aligned-stuff-and-stick-on-the-odds-and-ends
> thing? I suppose so huh...

Yes, it copies single bytes until either the source or the destination
are aligned on 4-byte boundary, then does the rest with "rep movsl" and 
finally copies the last 3 or less bytes as single bytes.

- Raw text -


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