where r is the number of shifts to emulate the read instruction and to shift out the data to the external tester. r includes the JTAG TAP instructions, debug port instructions and uP instructions. li denotes that instruction of every type might be different in length.