> #include > unsigned int count; > void main( ) > > count = (CCPR1H << 8) + CCPR1L; > } I was going to reply to Michael's comment that his compiler barfed over this statement - when I did it worked fine. Had me worried until I read the other posts. However... > static unsigned int CCPR1 @ 0x15; This looks even cooler. Got to love it when folks want to try to optimize a seemingly innocuous function. >Your idea of using it directly is superb, I just wouldn't have thought of that. However it obviously > only works in the minority of cases, a more general solution is needed for most jobs Michael - are you saying that either CCPR1 is not adjacent in all pics or it's not at 0x15? -DO