I often used the inline-assembler in Turbo C++
asm {mov ax,1
mov bx,2
}
how does it work in Dev-C++, if it does at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-23
__asm__(
"mov ax, 1"
"mov bx, 2"
) ;
Be aware that you must also take care not ot destroy the C run-time environment (by changing registers that it may be using for itself). See the GCC manual here http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended%20Asm and the following sections for details.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I often used the inline-assembler in Turbo C++
asm {mov ax,1
mov bx,2
}
how does it work in Dev-C++, if it does at all.
__asm__(
"mov ax, 1"
"mov bx, 2"
) ;
Be aware that you must also take care not ot destroy the C run-time environment (by changing registers that it may be using for itself). See the GCC manual here http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended%20Asm and the following sections for details.
Clifford