Message-ID: <37319E8F.E4035B8F@go.ro> Date: Thu, 06 May 1999 16:52:16 +0300 From: Radu Georgescu aka skoola 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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...