Mail Archives: djgpp/1997/04/21/11:00:19
| From: | doing AT soback DOT kornet DOT nm DOT kr
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | At inline assemble.. (2)
|
| Date: | 21 Apr 1997 12:59:15 GMT
|
| Organization: | System Engineering Research Institute (SERI)
|
| Lines: | 13
|
| Message-ID: | <5jfob3$3n8$1@usenet.kreonet.re.kr>
|
| NNTP-Posting-Host: | soback.kornet.nm.kr
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
int Example( int count )
{
__asm__ __volatile__ ( "
MULL %%ECX"
: : "cx" (count) : "ax", "cx" );
}
I see a warning here, "control reaches end of non-void function".
I know the way "MOVL %%EAX to a var and return the var"
At BC, I used "return _AX;" to solve this warning because I hate warning.
Thanks in advance.
- Raw text -