From: Elliott Oti Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline Assembly Date: Sat, 07 Dec 1996 05:29:00 -0800 Organization: Academic Computer Centre Utrecht, (ACCU) Lines: 17 Message-ID: <32A9711C.2370@stud.warande.ruu.nl> References: <589tcn$8lj AT geraldo DOT cc DOT utexas DOT edu> NNTP-Posting-Host: warande1078.warande.ruu.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: lonniem AT mail DOT utexas DOT edu DJ-Gateway: from newsgroup comp.os.msdos.djgpp lonniem AT mail DOT utexas DOT edu wrote: > > { > asm ("cld \n\t" > "rep \n\t" > "movsl \n\t" > "movl %eax, %ecx \n\t" // this will not work > "rep \n\t" > "movsb \n\t" > : // no outputs > : "a" (nExtraMoves), > "c" (nNumberOfMoves), > "S" (pSource), > "D" (pVideoMemory) > : "%eax", "%ecx", "%esi", "%edi"); Replace %eax and %ecx with %%eax and %%ecx.