I wish one could edit their own posts for a longer time than just 1 hour after posting.
I would like to clarify my question posted above...
Darrel, Ingvar,

I hope you do not mind dusting off this OLD thread.

Quote by Ingvar... "I bet you know that but some people find it difficult to get their head around this."

Boy was he right... Very interesting but difficult to follow for a newbie.


I am also trying to convert knots and fractional knots to mph.h

Darrel could you please explain/elaborate on the code from your last post...

@Knots = _ssmax + 17
Knots VAR WORD ext

Dec_speed = Knots * 9881
Dec_speed = R0 + R2.15 + Knots

1. I thought that "@" usually proceeds "one line of assembly code"?
2. The last two lines of your code equates "Dec_speed" to one thing and then another thing. Doesn't the second line negate the first? Or, is the code shown out of context?
3. What are the items "R0" and "R2.15"? variables? or math function?

As I read through this thread, I was not able to follow with much clarity, sorry, newbie alert!! .

In my gps program I end up with two variables containing integer knots and decimal knots.

If we assume the variables used are knots (whole knots) and knotsten (fractional knots) how would I apply your final code to provide mph.h? (miles per hour & fractional miles per hour)

Thanks much
Dwight