src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add the instruction to load an argument on TOS.  This method
/// selects the correct instruction based on the value of argNo
/// </summary>
/// <param name="argNo">the number of the argument</param>
Add the instruction to load an argument on TOS.  This method
selects the correct instruction based on the value of argNo
Add the instruction to load an argument on TOS . This method selects the correct instruction based on the value of argNo
public void LoadArg(int argNo) {
            if (argNo < 4) {
                Op op = (Op)Op.ldarg_0 + argNo;
                AddToBuffer(new Instr(op));
            } else if (argNo <= maxUByteVal) {
                AddToBuffer(new UIntInstr(IntOp.ldarg_s,(uint)argNo));
            } else {
                AddToBuffer(new UIntInstr(IntOp.ldarg,(uint)argNo));
            }
        }
public void LoadArg ( int argNo ) { if ( argNo < 4 ) { Op op = ( Op ) Op . ldarg_0 + argNo ; AddToBuffer ( new Instr ( op ) ) ; } else if ( argNo <= maxUByteVal ) { AddToBuffer ( new UIntInstr ( IntOp . ldarg_s , ( uint ) argNo ) ) ; } else { AddToBuffer ( new UIntInstr ( IntOp . ldarg , ( uint ) argNo ) ) ; } }
Add the instruction to load an argument on TOS.
Add the instruction to load an argument on TOS .
argNo
int
the number of the argument
the number of the argument