Thanks for the help. I'm beginning to see the light, but my head's not completely pulled out yet! I know that on each pass, X1 will be greater than a constant(60 for example). I would like to total all of these difference numbers over a period of time. I know I may have to use WORD variables, but I just want to get the BYTEs working first! This code doesn't do it:

Main:

count PORTC.5, 1000, W1
X1 = W1 - 60
lcdout $fe,1, dec W1
lcdout $fe,$c0, dec X1
pause 10
goto Main