|
From: Benjamin W. <ben...@ho...> - 2002-02-11 16:49:58
|
<html><div style='background-color:'><DIV>
<P>Morning,</P></DIV>
<P>I don't know too much about using assembly from within C/C++, but I believe that the standard usage is something like:</P>
<P>__asm xor bx, bx /* double underscores and no semi-colon */</P>
<P>-or-</P>
<P>__asm /* double underscore */<BR>{<BR> mov ax, 0e07h /* again no semi-colons */<BR> xor bx, bx<BR>} /* no semi-colon here either */</P>
<P> </P>
<P>I hope that helps out some.</P>
<DIV></DIV>
<DIV><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless</FONT></DIV>
<DIV></DIV>
<DIV><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.</STRONG></FONT></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Nick J" <JAM...@WO...>
<DIV></DIV>>Reply-To: "Nick J" <JAM...@WO...>
<DIV></DIV>>To: <DEV...@LI...>
<DIV></DIV>>Subject: [Dev-C++] Asm once again...
<DIV></DIV>>Date: Sun, 10 Feb 2002 20:00:16 -0600
<DIV></DIV>>
<DIV></DIV>>...
<DIV></DIV>>This stuff is messed. asm("command") gives lotso errors...
<DIV></DIV>>
<DIV></DIV>>19 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: too many memory references for `mov'
<DIV></DIV>>
<DIV></DIV>>20 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: Ignoring junk `h' after expression
<DIV></DIV>>
<DIV></DIV>>20 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: suffix or operands invalid for `int'
<DIV></DIV>>
<DIV></DIV>>21 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: too many memory references for `mov'
<DIV></DIV>>
<DIV></DIV>>22 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: Ignoring junk `h' after expression
<DIV></DIV>>
<DIV></DIV>>22 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: suffix or operands invalid for `int'
<DIV></DIV>>
<DIV></DIV>>19 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: too many memory references for `mov'
<DIV></DIV>>
<DIV></DIV>>22 c:\windows\temp\ccwflegb.s
<DIV></DIV>> Error: Ignoring junk `h' after exprpa:22:ny memory references foO SmTvM
<DIV></DIV>>
<DIV></DIV>>I hate VGA...
<DIV></DIV>>
<DIV></DIV>>PLEEASSEEE help me...
<DIV></DIV>>
<DIV></DIV>>P.S. Sorry for posting all errors, but...
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_etl_EN.asp'>http://explorer.msn.com</a>.<br></html>
|