The solution should be easy:
You want to convert an ASCII-string to a decimal number.
You forgot, a ASCII-number has not the value from 0 to 9, but from $30 to $39. So you must truncate some bits !
Try FL=...(myvar[...] & $F) * 10... !!!!
The solution should be easy:
You want to convert an ASCII-string to a decimal number.
You forgot, a ASCII-number has not the value from 0 to 9, but from $30 to $39. So you must truncate some bits !
Try FL=...(myvar[...] & $F) * 10... !!!!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Thanks BigWumus...
The code is working perfect, I missed the ASCII part, good thing for the forums.
Sorry Darrel Taylor, I should have been more explicit with my post. (Boss breathing down my neck).
Thanks again...
Glen65
My fault Glen, I didn't see you had the symptoms intermixed with the code.
I tend to not look at code that isn't within [CODE] tags, cause it's so hard to read, all scrunched to the left.
Thanks to BigWumpus, my lazyness was overcome.
Carry On,
Darrel
Bookmarks