phil: yes i directly connected mclr to the supply voltage hector: you are completely right! sdcc leaves the code in _asm blocks=20 unchanged, so it actually did the movlw using the ram address as an=20 argument. I will try everything you said; for now, before i go to bed,=20 besides changing it with a movf, i put an INTCON=3D0 at the beginning, but= =20 this didn't solve the reset problem. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist