The low( ) and high( ) operators do the division/remainder for you > > movlw low(.300) ;loads LedTimer_lo with 44 > movwf LedTimer_lo > > movlw high(.300) ;loads LedTimer_hi with 1 > movwf LedTimer_hi > > For 24-bit numbers this can be extended to > > movlw upper(.300) > movwf LedTime_up ;if LedTimer_up is also present > > I did not know that. I always thought it was just for addresses but it makes sense now. > A register LedTimer can also be addressed as LedTimer+0, the next > in memory as LedTimer+1 and so on, if that suits you better > > And I did not know that, which now seems so obvious. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .