Mike M wrote: > most is, but where i get confused is there are lines like this > D = ra.0 > now MPLAB gives me an error that ra.0 is not defined. How do I define > ra.0 to be portA bit 0? The code translation has done it for you. Just comment out those "ra.xxx" lines, they only serve to tell *you* what's happening in the code. Should I ever get the time (and that is likely never :-() I will have a go at "cleaning" it up. -- Cheers, Paul B.