delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/06/15:47:55

Message-ID: <37319E8F.E4035B8F@go.ro>
Date: Thu, 06 May 1999 16:52:16 +0300
From: Radu Georgescu aka skoola <skoola AT go DOT ro>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: code to copy screen buffers
References: <01be94dc$96118880$LocalHost AT thendren>
Reply-To: djgpp AT delorie DOT com

> >Does anyone know any other way to swap screen buffers
> >from to video memory except using dosmemput(framebuffer, 64000, 0xa0000).
> >Can it be done in using inline assembler?

here we go:

        __asm__("
        push %%es
        mov %0,%%di
        mov %%di,%%es
        mov $0xa0000,%%edi
        mov %1,%%esi
        mov $16000,%%ecx
        rep
        movsl
        pop %%es
        "
        :
        :"g"(_dos_ds),"g"(vscreen)
        );
vscreen is the pointer to your frame buffer...

- Raw text -


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