how can i use inline asm in Turbo C
Printable View
how can i use inline asm in Turbo C
OH MY GOD!
You've asked this question like 4 times already!
Look in compiler help files!
Look in the manual that came with it!
Look at the website!
Search google!
Go read one of the multitudes of replies you got the first 17 times you posted!
Or, start playing with it yourself!
It's really funny everyone tell me to look in the files
but i looked and there is nothing about asm inline
the readme file tell that there is info about inline in the guide but i dont know from where i can get this guide
have a look around the borland website maybe....
i looked in the site
Did you try any of these?
Quote:
Originally posted by Ken
asm(mov ah,9)
asm mov ah,9
_asm mov ah,9
__asm mov ah,9
I have no idea if this is of any help to you as I do not own Turbo C, but if not there were plenty more links relating to inline ASM and Turbo C on Google
{DNW} is *obsessed* with assembly.
I think I know the syntax with borland's compilers
Code:asm {
mov ah, 9
}
In all fairness to {dnw} he has asked other asm related questions besides this one. Anyway, I tried nick's and it works but you will have to read those documents. It is easier to just link your asm files to your c files.
Are you just asking these questions for no reason or have you started learning asm yet?
i'm learning asm
someone know from where i can download borland c
i didn't find it in borland site
i asked for borland c not borland c++
You can compile anything in Borland C++ that you could with Borland C
Assembly lanuage programming is related to the microprocessor, therefore a programmer has to get this information from intel. Inline assembly should be somewhere in the compiler documentation. I believe that you will still have to make sure it will work with your processor. It's likely that if you acquire a newer compiler than it will have more information. All I know is that almost nobody wants to use assembly any more unless they are writing an operating system.
I don't really agree with this. I think alot of C developers like to speed up their code by using ASM. I don't know ASM myself, however I was thinking about learning 8086 just for the added control I can have when I code C.Quote:
Originally posted by Witch_King
All I know is that almost nobody wants to use assembly any more unless they are writing an operating system.
The only thing I don't like is that different compilers support different ways of squeezing the ASM in there. I use DevC++ when I'm in Windows (GCC/Vi for Linux) and I don't think they have even documented support for inline ASM.
Oh well, keep it up {Dnw}, you'll get there someday :)