Not 100% sure what you are after but ...
Your software guy probably likes code that is well documented and easy to read – don't we all. I do the following all the time when in your situation. I set up a variable that I plan to use locally and then set up an alias to that variable.
Example:
AppleCount var BYTE ; define variable in RAM
OrangeCount var AppleCount ; alias to AppleCount
; early in the program
For AppleCount =1 to 10
Do Something
Next AppleCount
.
.
.
;Latter in the program
OrangeCount = PORTB
Select Case OrangeCount
Case 1
Do something
Case Else
Do something else
End Select
As you can see, the variable is reused and readability is maintained.
Paul Borgmeier
Salt lake City, Utah
USA
Bookmarks