TITLE: DIRTY DAN's DIRTY MATH TRICKS
PURPOSE: On Going Tutorial on Math Tricks in AVR Native Machine Language for Beginners.
PREAMBLE: While trying to help someone in another FORUM with a Division-by-60 routine to converting seconds to minutes, someone made the remark:
What RetroDan has is a quick and dirty approximation!
I think it was meant as an insult, but it gave me a great name for the type of binary routines I love: Dirty Math!
Quick & Dirty Routines that are small and super fast.
CAVEAT LECTOR: If you don't like taking chances and experimenting and don't really care about how big your programs are, or how fast they excecute then this is not a place for you. May I recommend the Atmel Appnotes #200, 201 and 204 that are chock full great standard math routines for the AVR microcontrollers.