Wouter van Ooijen wrote: > Any HiTech guys listening? > Not a HiTech guy... :) > I am trying Hitech C Lite, I ran into this bug: > > 1733 ;test1.c: 861: TRISB4 = 0; > 1734 0F7A 1003 clrc > 1735 0F7B 1803 btfsc status,0 > 1736 0F7C 2F80 goto u2331 > 1737 0F7D 2F82 goto u2330 > 1738 0F7E 1683 bsf status, 5 ;RP0=1, select bank1 > 1739 0F7F 1303 bcf status, 6 ;RP2=0, select bank1 > 1740 > 1741 > 1742 0F80 u2331: > 1743 0F80 1606 bsf (1076/8),(1076)&7 > 1744 0F81 2F83 goto u2344 > 1745 0F82 u2330: > 1746 0F82 1206 bcf (1076/8),(1076)&7 > 1747 0F83 u2344: > > The problem is that the bsf/bcf instructions that select bank1 are in > the wrong place: they are never executed.. Probably they need a complete, minimal C source that shows the problem, plus the version of the compiler, plus the command line/options used for compilation. Otherwise it can be tricky or impossible to reproduce the problem. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist