ALWAYS write your function in a highe level language first. Get the algorithms functioning properly.
THEN write it in assembly code.
Then run both functions and compare the results to validate the assembly!
So if using C/C++ write your function in pure C first (NOT C++), then take a pass at assembly. This isn't a slap it together type function so you need to have your logic verified and much quicker to do in C code first!
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
Offline 891 posts
since Jun 2009