added an interpretation of "ind" that is more like "ldi" since this makes sense to me but could be wrong