OK, I'll have another look at your posting, thanks. I haven't done more than a cursory glance at it as yet, same for Freyguy's asm code.
Was there a particular reason why you wanted the C compiler to generate the same asm instructions or was it just so you could be sure it would work the same without having to debug new C code if it didn't do quite what you expected?
I haven't even seen that it uses 24-bit arithmetic! Take your word for it, but wow! I managed to get my bms done with 8 bit integer arithmetic and still keep sufficient accuracy and resolution.
__________________
Sometimes I sits and thinks and sometimes I just sits.
|