by Scott Dattalo
set_bit: movf bitmask,w iorwf indf,f btfsc new_state,0 xorwf indf,f clrc rlf bitmask,w rlf bitmask,f btfsc bitmask,0 incf fsr,f 9 words/cycles in assembly,
also: