Paul, your code started as following: >porta equ 5 > >start > clrf 0 ; Make sure RAM page bits are 0 > movlw 3 > option > movlw 10 ; Port A.0 as output > tris porta PortA,0 has to be tris'ed as output PortA,1 has to be tris'Ed as input Your problem probably is that you had an other number radix in mind at your movlw-instructions than mpasm decodes. So better explicitely add the radix: movlw d'3' ; decimal 3 option movlw b'11111110' ; binary, bit0=output, other bits=input tris porta Siegfried. Siegfried Grob, | student of electrical engineering, | university of ulm, germany | e-mail: siegfried.grob@student.uni-ulm.de | phone & fax: +49 7304 921372 | -----------------------------------------------'