The code works perfect on a 16F886, thank you Henrik!
I'll bet that even if you own PBP3 and a 18F series chip, the code Henrik posted, will be using less memory and will be much faster than using Long variables.
Ioannis
Thanks for the feedback Fredrick!
Just a note, you don't need PBP3 to use LONGs, support for that were added in v2.5.
You do need an 18F part though. But, as Ioannis said, for a simple counter like that it's probably not worth the "cost" having them enabled.
/Henrik.
It does work for display, I did 15 digit numbers with a 16F628 the same way it was done on paper in school
with allowance for 16 digit result for a character LCD
Just a shame if you wanted the result in a variable, but you could probably write a good & proper calculator.
Code:123456789012345 * 012345678901234 _______________ _______________
Bookmarks