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
Post a Comment