Mail Archives: djgpp/1997/06/08/12:33:46
From: | ACosand <ACosand AT prodigy DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Inline ASM Help
|
Date: | Sun, 08 Jun 1997 11:22:10 -0400
|
Organization: | Prodigy Internet
|
Lines: | 19
|
Message-ID: | <339ACE21.6BCC@prodigy.net>
|
Reply-To: | ACosand AT prodigy DOT net
|
NNTP-Posting-Host: | 207.115.6.146
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm trying to use the following inline asm code in djgpp, but I'm
afraid that I can't figure out how from the docs and the FAQ. If any
one could show me how to do this, it would be greatly appreciated
Aaron Cosand
inline AstFixedpoint_t AstFixMulFix( AstFixedpoint_t a, AstFixedpoint_t
b )
{
AstFixedpoint_t result;
mov eax, a
mov ebx, b
imul ebx
shrd eax, edx, 16
mov result, eax
return result;
}
GoreTec3 AT aol DOT com
- Raw text -