www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/23/15:06:27

From: cpascal AT soback DOT kornet DOT nm DOT kr (DongHo Byun (kornet))
Newsgroups: comp.os.msdos.djgpp
Subject: [Q] On DJGPP v2 Inline ASM..
Date: 23 Nov 1996 06:30:09 GMT
Organization: KORNET
Lines: 25
Message-ID: <5765lh$4d5@usenet.kornet.nm.kr>
NNTP-Posting-Host: soback.kornet.nm.kr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello?

  I used the followings on Borland-C++.
---------------------------------------------------------------------------
               BC++                               DJGPP
---------------------------------------------------------------------------
int FUNCTION( int arg1, int arg2 )      int FUNCTION( int arg1, int arg2 )
{                                       {
       asm {                            __asm__ ( "
           .........................         ..............................
           JC   EndOfFunction                JC    EndOfFunction
           XOR  AX, AX                       XORL  %%EAX, %%EAX
       }                                EndOfFunction:"
EndOfFunction:                               : outputs : inputs : modifiers );
       return _AX;                           ????????????????????
}                                       }
---------------------------------------------------------------------
  Surely this works well without "return _AX;" line on DJGPP v2.
And I know the method giving EAX to output variable of __asm__.
Also, I know the method giving options to be no such warnings.
But, Is there any direct register-accessing method as "_AX, _BX, ..." on BC++?

I'm sorry I am poor at English.

Many thanks in advance.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019