I have a 16f877 chip and have alot of VAR statements like this. The question is haw many VAR statements can you have in a program. Can I replace all these VAR's and use just one VAR because the values will always be the same for different FOR statements. I have this many of VAR's at the beginning of the program. Thanks, Leon

a var byte
b var byte
c var byte
d var byte
e var byte
f var byte
g var byte
h var byte
i var byte
j var byte
k var byte
l var byte
m var byte
n var byte
o var byte
p var byte

I use these like this

(example)
for b= 1 to 100
if b=100 then port1.0