www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/22/02:08:46

Date: Sat, 22 Feb 1997 00:31:23 -0600
From: sanderson AT emails DOT com
Subject: double buffer and pointers
Newsgroups: comp.os.msdos.djgpp
Message-ID: <856591946.11607@dejanews.com>
Reply-To: sanderson AT emails DOT com
Organization: Deja News Usenet Posting Service
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Just a few quick questions here. My main goal was to write a
fairly quick double buffer procedure (one that displays the
buffer). Using memcopy is too slow, and I'd like to do it with
inline assembly kind of like so:

               movw _dos_ds,es
               movl video_buff,edi
               movw buffersize,cx
               movw 320,ax
               mulw y,ax
              ?addw ax,di
              ?lds  si,double_buffer
               movsw
               rep

My first question is where I have the two question marks. I need to know
if this will work with DJGPP assembly. (I would test it myself, but I
really don't know if that would be wise).
Next I need to know if the pointer I receive from malloc() will work in
line 3 as I have written it.

Thanks for helping

Steve Anderson

sanderson AT emails DOT com

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

- Raw text -


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