Date: Fri, 16 Jan 1998 16:38:21 -0800 (PST) Message-Id: <199801170038.QAA07294@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Andreas Burman , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Simpel? Asm question Precedence: bulk At 11:20 1/16/1998 -0800, Andreas Burman wrote: >How would I convert this Watcom Asm to Djgpp? > >int BIGMUL(int a,int b); >#pragma aux BIGMUL = \ > "imul edx" \ > "mov eax,edx" \ > parm [eax][edx] \ > value [eax]; I don't completely understand this syntax, but here's a wild guess. See if it works. int BIGMUL(int a, int b) { int r; asm("imull %edx" : "=d" (r) : "a" (a), "d" (b) : "eax"); return r; } HTH Nate Eldredge eldredge AT ap DOT net