Ken Parkyn wrote: > anyone see what I've done wrong? > .... > > main movf PORTA,W ;read select address into w > movwf ADRESS ;store this in ADRESS > call tableb ;call lookup table for port B > movwf PORTB ;put result out to port B > movwf ADRESS ;restore data from ADRESS > call tablec ;call lookup table for port C > movwf PORTC ;put result out to port C > movwf ADRESS ;restore data from ADRESS > call tabled ;call lookup table for port D > movwf PORTD ;put result out to port D > goto main ;repeat Ken: The second and third "movwf ADRESS" lines should read "movf ADRESS,W". -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499