Hi again
I'm wondering if this could become more dynamic in terms of the number of keypresses.
At the moment the keypresses are limited to 3, after that number the program goes a little wonky because of the B0 var which holds the sum of the 3 keypresses (hats off to Al !)
As soon as the desired/required number of keypresses has to increase, the so the need for multiplying increases .
I'm sure the program could be easily sized for a much higher number of keypresses by having more if statements and multiplies. To neaten things up perhaps a single case statement could be used and a check is kept on the index A0 in a byte.
With this in mind, the number of keypresses (number entered) could grow to the size of the number of characters on the LCD ( well almost :-))
This of course now opens the door for a PIC calculator :-)
Al,Ioannis,Joe S, Steve and Jerson ...THANK YOU for all the tips help and suggestions so far :-)
Al thank you for your patience and persisitence and of course the final piece of the puzzle.
This has taught me lot and has been a whole lot of fun!
Again thanks all of you for all the help thus far.
I will post the final code once things are neatened up and commented correctly :-) in the hopes someone finds this useful sometime !
Kind regards
Dennis




Bookmarks