0000
00
d_cnt
b_cnt
pos
nxt
INP KEY
inv (d_cnt, pos)