public void RemoveInstruction(int pos) { if (pos < 0) return; for (int i=pos; i < tide-1; i++) { buffer[i] = buffer[i+1]; buffer[i].index = (uint)i; } tide--; if (pos == currI) currI = pos-1; }