Bhavbhuti,
> If it is not a lot of work, I would like to give it a try.
No, I already have the function built into my library. It just a matter to make a main program to call it :)
> Is this compilable in BC3.1 C/C++?
No, it's in ASM. However, you don't have to compile it. I give you the exe file. Or do you want a C/C++ version? I have a complete working example (plus the drivers) in C++, but sorry I forgot the link.
Herman