Hi users,
Please tell me the correct format of "asm" statement.
Is it
asm
{
.....;
.....;
}
or
asm("....");
asm("....");
?
Thanks,
Hi users,
Please tell me the correct format of "asm" statement.
Is it
asm
{
.....;
.....;
}
or
asm("....");
asm("....");
?
Thanks,
Both are acceptable, but it really depends on your implementation. Check your compiler's help files for the exact syntax.
My best code is written with the delete key.
I know Borland uses the first because I've used asm in that. Gcc, I believe, uses the second since the DOS port (DJGPP) of it mentions it in their documentation.
Borland uses both formats but as Prelude said you need to check with your compilers docs to make sure.
If you are using the microsoft compiler, it would be _asm { }.
Also note that gcc I believe uses different asm syntax. I believe it uses "AT&T" syntax insted of "Intel".
Correct me if im wrong. ( I often am ).
What is C++?
yes thats right
gcc uses at&t
im sure most others use intel style