> Walter, > > When I program something like this to set the TRIS register, the MPC > generates a syntax error, file not found. > > #include<12c508.h> > void main(void) > { > > __TRIS(0x01,GPIO); > > } > > I probably do something wrong but I have no idea what it is. > Hope you or someone else can help me. It is not finding the 12c508.h. This file should be in the current directory, or in the path defined by the system variable INCLUDE or on the system PATH. Your code compiles without errors just fine. #include<12c508.h> void main(void) { 0001 0C01 MOVLW 01h __TRIS(0x01,GPIO); 0002 0006 TRIS PORTB 0003 0800 RETLW 00h } Walter Banks