> yes that's right I need the flag from my timer.asm, how can do that ? Many of my programs will use a register called 'flags', and I'll define each bit as an indicator that something needs attending to, eg #define motor_stalled flags,0 #define reverse flags,1 Just check with btfss etc and gotos for action, eg btfsc motor_stalled ;skip if motor running OK goto power_off ;else cut power Joe PS, please trim your posts by quoting only what you need to --=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 .