Code:
for X = 6 to 1                                            
    if index_slot.0[X] >> X = 1  then index_slot = X  '  show the lowest value available  index slot for use 
 next X