src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Remove the instruction at a specified position from the buffer.  If you
/// remove the "current" instruction (from GetNext or GetPrev) then the
/// "current" instruction becomes the instruction before that in the buffer.
/// </summary>
/// <param name="pos">position of the instruction to be removed</param>
Remove the instruction at a specified position from the buffer.  If you
remove the "current" instruction (from GetNext or GetPrev) then the
"current" instruction becomes the instruction before that in the buffer.
Remove the instruction at a specified position from the buffer . If you remove the " current " instruction ( from GetNext or GetPrev ) then the " current " instruction becomes the instruction before that in the buffer .
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;
        }
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 ; }
Remove the instruction at a specified position from the buffer.
Remove the instruction at a specified position from the buffer .
pos
int
position of the instruction to be removed
position of the instruction to be removed