Mail Archives: djgpp/1997/06/09/08:50:02
ACosand (ACosand AT prodigy DOT net) wrote:
: 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;
: }
You should read FAQ and info pages carefully since all is explained there.
--
// E-mail: smikecin AT bigfoot DOT com
// URL: http://fly.cc.fer.hr/~sime
- Raw text -