Hullo All; I have a problem using a 16C64. The following code: 00028 init bsf STATUS,5 ;go to bank 1 00029 movlw 0x3F 00030 movwf TRISA ;set port a as inputs 00031 clrf TRISB ;set ports,b,c & d as outputs 00032 clrf TRISC 00033 clrf TRISD 00034 bcf STATUS,5 ;back to bank 0 00035 clrf PORTA 00036 clrf PORTB 00037 clrf PORTC 00038 clrf PORTD When I single-step it on MPSIM, at the instruction to clear PORTA, (00035) PORTA remains at 3F and the program steps on to the next instruction Is this an oddity of MPSIM, the 16c64 or me? Thanx for any help ________________________________________ Ken Parkyn email: K.Parkyn@sct.gu.edu.au Office of Technical Services, Electronics Workshop GRIFFITH UNIVERSITY Nathan Qld.4111 Australia P.O.Box 185 Ph:(07)3875 7289 Fax:(07)38757151 ________________________________________