kaz,be patient to make me understand the code
you consider in the code that addresses(duration) is a continuous values ,ok
if there is not a value in the successive address it put a zero in content of ram (corresponding to this empty address) its wright or not??
but the reverse happens i.e i have a discrete values.
and i have a question to you if i want to separate the codes and the addresses that output ascending i.e the codes ordered in output
and the corresponding in another output because i will use the codes that ordered to count the distances that we done before
i hope you understand me well