www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/07/11:21:18

From: Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl>
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
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.

- Raw text -


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