From: "Student, T.U.E." Newsgroups: comp.os.msdos.djgpp Subject: Re: Moving a screen buffer to the screen Date: Sat, 8 Jan 2000 14:08:01 +0100 Organization: Eindhoven University of Technology, The Netherlands Lines: 29 Message-ID: <857crk$40s$1@news.tue.nl> References: NNTP-Posting-Host: n24.dial.tue.nl X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Prashant TR wrote in message news:Pine DOT LNX DOT 4 DOT 10 DOT 10001072337450 DOT 691-100000 AT yahoo DOT com... > > On Fri, 7 Jan 2000, Wilmer van der Gaast wrote: > > > This might work: > > > > mov esi,src_ptr // Source pointer > > mov edi,scr_ptr // Screen pointer > > mov ecx,16000 // 320*200/4 > > cld // Just to be sure it's the right direction > > rep movsd // Copy 4 bytes/dwords 16000 times > > > > The scr_ptr can't be 0xA0000, unless you use big_ds or so, maybe. I use > > the map_linear_memory (?) call to map the screen buffer in the normal > > address range that can be used with standard C pointers. > > > > (Haven't tested it) > > This won't work unless you change the DS and ES selectors to _dos_ds. And, > of course, convert all this code to GAS. > > Prashant > Thank you all, it worked!