basically it's *very* hard to do it any other way than using an __asm block,
so just put __asm {..<your assembly here > ..} in your function.
Doing it any other way is possible and some would argue better but to be
honest I've tried it and it's far more trouble than it's worth, an immense
PITA for what you would think would be an easy process. Oh no. Basically I
tried to find the Microsoft assembler only to find it wasn't included in the
SDK, I was then led on a wild goose chase round a load of warez sites trying
to find what the compiler can do internally of its own accord and without
any (otherwise unnecessary) boilerplate definitions at the top of the asm
file anyway.
"Amol Vaidya" <my*****@gmail.com> wrote in message
news:DE*****************@fe2.texas.rr.com...
I'm still very much a beginner when it comes to programming assembly for
the x86. I've read through one book, so I understand the very basics, but
that's about as far as my knowledge in Assembly goes. Now, I've been
writing a bit of assembly code that I'd like to be able to call as a C
function. My book doesn't describe how to do this. Could someone please
point me to a resource which would allow me to learn this skill? I'm using
NASM, if that helps any. Thanks in advance for any advice.
-Regards
Amol Vaidya