separate out EXTENDED_COMMAND operations
made SET_BYPASS dynamic
separate off EXTENDED_COMMAND, JTAG_IRREG, JTAG_IRREG_EXTRA into functions