g++ at&t inline asm to bcc32

would some kind soul please translate this g++ inline asm snippit to one compatable with Borland bcc32 ver 5.5

Thank you

James

1
2
3
4
5
6

void set_fpu (unsigned int mode)
{
  asm ("fldcw %0" : : "m" (*&mode));
}

I can't give you a straight answer in the form of code, because then I'd have to do your research for you.

http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

It would be nice of you, however, to post back the result once you've figured it out.
@Catfish
No interest in learning at&t syntax.
Hopefully there is someone in the forum who has the knowledge help us both out!

James



Never mind. It appears the free BCC 5.5 does not support inline asm

James
I couldn't fathom that. I remember that even good old v. 3 supported inline assembly. Oh well.
Well the compiler probably does but there is no tasm in the package so thiis error is posted -> could not find tasm
Topic archived. No new replies allowed.