This question caught my eye. I think it is great that you are interested in exploring the low level universe of programming. It can be a frustrating experience, but when you get something working and you understand what you just did, it is a great feeling.
I used Turbo C many years ago when it was DOS based and later when it evolved into C++ Builder, but I have not followed the latest history. I just Googled a bit and it looks like they made a stripped down version of C++ Builder that they named Turbo C. I assume that is what you have.
I don't know what the latest version is or when it was released, but I suspect you might be limited in functionality. As far as I understand, Turbo C is no longer supported and it might not be able to handle the newer instruction sets introduced in modern CPUs. My advice would be to use a newer IDE if it is possible for you. I don't know if Visual Studio is ideal, but it is what I have used in the past.
I did find a couple of links to the old Turbo C stuff. Maybe that can help you out:
http://www.ic.unicamp.br/~celio/mc404/turboc201/embedded-asm.html[
^]
https://sites.google.com/site/pratiktambe/assemblyandc[
^]
If you instead want to try out Visual Studio, here are two CodeProject articles to get you started:
Using Inline Assembly in C/C++[
^]
Inline Assembly in GCC Vs VC++[
^]
I like the links given in Solution 1. Below are some of my old links, but since my inline assembly code was done a few years ago in order to optimize video compression code, the links might be a little advanced for you at this stage.
Paul Hsieh's Assembly Lab[
^]
Assembly Gems[
^]
Mark Larson: Assembly Optimization Tips[
^]
Agner: Optimizing assembly code[
^]
The last link (Agner) is one of those with advanced context, but I included it here because it is
the reference for anyone looking into using assembly code for optimization purposes. Additionally, there is a great list of links at the bottom of that page.
All the best.
Soren Madsen