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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -