src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add the instruction to store to a local.  This method selects
/// the correct instruction based on the value of locNo.
/// </summary>
/// <param name="locNo">the local to be stored to</param>
Add the instruction to store to a local.  This method selects
the correct instruction based on the value of locNo.
Add the instruction to store to a local . This method selects the correct instruction based on the value of locNo .
public void StoreLocal(int locNo) {
            if (locNo < 4) {
                Op op = (Op)Op.stloc_0 + locNo;
                AddToBuffer(new Instr(op));
            } else if (locNo <= maxUByteVal) {
                AddToBuffer(new UIntInstr(IntOp.stloc_s,(uint)locNo));
            } else {
                AddToBuffer(new UIntInstr(IntOp.stloc,(uint)locNo));
            }
        }
public void StoreLocal ( int locNo ) { if ( locNo < 4 ) { Op op = ( Op ) Op . stloc_0 + locNo ; AddToBuffer ( new Instr ( op ) ) ; } else if ( locNo <= maxUByteVal ) { AddToBuffer ( new UIntInstr ( IntOp . stloc_s , ( uint ) locNo ) ) ; } else { AddToBuffer ( new UIntInstr ( IntOp . stloc , ( uint ) locNo ) ) ; } }
Add the instruction to store to a local.
Add the instruction to store to a local .
locNo
int
the local to be stored to
the local to be stored to