ATR_T0_IDX
nhist = ATR_TD_PROT(buf[ATR_T0_IDX]);
cbits = ATR_TD_NBITS(buf[ATR_T0_IDX]);
idx = ATR_T0_IDX + 1;