> First, what processor ? Excellent question. > > movfw LOOP ; LOOP to w > > call DIGIT_T There is a slight chance of a stack overflow here (depending on processor type). > > DIGIT_T ; 3 digit display table > > addwf pcl,f ; Jump into lookup table > > ; _____321' > > retlw b'11111011' ; Segment 3 > > retlw b'11111101' ; Segment 2 > > retlw b'11111110' ; Segment 1 > > Depending on the processor (> 2 Kwords flash) you *could* > have a PCLATH problem here. Not > 2 KWord. Already at 256 word boundaries this could create problems. You HAVE to make sure where the table is. Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist