Is there a way to insert assembly code into C? -


i remember in day old borland dos compiler this:

asm {  mov ax,ex  etc etc... } 

is there semi-platform independent way now? have need make bios call, if there way without asm code, equally useful me.

using gcc

__asm__("movl %edx, %eax\n\t"         "addl $2, %eax\n\t"); 

using vc++

__asm {   mov eax, edx   add eax, 2 } 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -