Jinx wrote: >>> bsf PORTA, LED1 >>> >> Does #define not work? I'd think something like this would work: >> >> #define Led1 LATA,1 >> >> bsf Led1 >> > > That's what I was thinking, but the question seemed to have such > a simple answer (if you know it of course !!) it made me hesitate > replying in case I'd missed something > > Actually it does not work! I define as recommended: #define lmot_dir PORTE,0 then code as follows: BCLR lmot_dir when I build I get the following error: BOT_1.s:90: Error: Too few operands ('bclr lmot_dir') I also tried using LATE,0 in the define and the code with the same results. Why is giving a custom name to a port pin in ASM30 such an ordeal. I can just use BCLR PORTE, #0 and it works fine but a clearly defined name for the pin makes for readable code. -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist