H huanyong New Member Oct 16, 2003 #1 hi! anyone know how to complement a byte using pic basic language? say complement 10101010 will becomes 01010101? i cant find any command in the instruction set......thanx! cheers:>
hi! anyone know how to complement a byte using pic basic language? say complement 10101010 will becomes 01010101? i cant find any command in the instruction set......thanx! cheers:>
evandude New Member Oct 16, 2003 #2 an exclusive OR (XOR) with 11111111 would do it... I don't know exactly what the command would be for it, as I don't use PIC BASIC...
an exclusive OR (XOR) with 11111111 would do it... I don't know exactly what the command would be for it, as I don't use PIC BASIC...
E emac_eire New Member Oct 16, 2003 #3 Hi huanyong, i think the command you are looking for is COMF . Hope this helps.