I need to write a function in asm but the program is a c one. Here is the c version static byte a; void MySub() { a=a+1; } I require MySub() to be in asm, but to be callable from c or inline Any help will be appreciated. Note: I use mcc18 I prefere code which actually compiles without errors to links --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist