Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have Assembly inline code in C/C++?
Message
De
10/09/2000 05:31:49
 
 
À
02/09/2000 11:05:10
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00412082
Message ID:
00414672
Vues:
14
You can link to assembly language object files created by MASM, TASM or inline your ASM code. To inline the assembly language code you use the __asm keyword.

You can write your assembly language as either a block or single lines, for example:-
// Inline assembly block.
__asm
{
   pop cx           
   pop di           
   add di, cx     
   push di       
}

// Single inline statements.
__asm pop cx           
__asm pop di           
__asm add di, cx     
__asm push di       
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform