Use if TCK/SK starts at '1'
This will clock out bytes on TDI/DO from 1 to 65536 depending on the Length bytes. A length of 0x0000 will do 1 byte and a length of 0xFFFF will do 65536 bytes. The data is sent LSB first. Bit 0 of the first byte is placed on TDI/DO then the TCK/SK pin is clocked. The data will change to the next bit on the rising edge of the TCK/SK pin.