delorie.com/archives/browse.cgi | search |
Date: | Fri, 16 Jan 1998 16:38:21 -0800 (PST) |
Message-Id: | <199801170038.QAA07294@adit.ap.net> |
Mime-Version: | 1.0 |
To: | Andreas Burman <abu1016 AT ba DOT ssdn DOT skelleftea DOT se>, djgpp AT delorie DOT com |
From: | Nate Eldredge <eldredge AT ap DOT net> |
Subject: | Re: Simpel? Asm question |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |