Date: Mon, 21 Jun 1999 17:12:40 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Bart Alewijnse cc: djgpp AT delorie DOT com Subject: Re: Screen copy In-Reply-To: <199906211407.QAA20050@deimos.worldonline.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.