Can any one help me on this now to write a propet goto and return value function in 18 F below is what i have written Please help me see if there is any mistake GOTO JUMP TABLE movlw high JUMPSTART movwf PCLATH RLNCF COMMAND,W RLNCF WREG,W ADDWF PCL,F JUMPSTART GOTO READ_ADDRESS GOTO WRITE_ADDRESS GOTO AND_ADDRESS GOTO OR_ADDRESS GOTO HIGH_PIN GOTO LOW_PIN GOTO COMMAND6 GOTO COMMAND7 GOTO COMMAND8 GOTO COMMAND9 GOTO COMMAND10 GOTO COMMAND11 GOTO COMMAND12 GOTO COMMAND13 GOTO COMMAND14 GOTO COMMAND15 RETURN VALUE PIN_TABLE movwf TEMP movlw high PIN_TABLE_ADDRESS movwf PCLATH movf TEMP,w ANDLW #0x07 RLNCF WREG,W ADDWF PCL,F PIN_TABLE_ADDRESS RETLW #0x01 RETLW #0x02 RETLW #0x04 RETLW #0x08 RETLW #0x10 RETLW #0x20 RETLW #0x40 RETLW #0x80 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist