src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add the instruction to load the address of 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 the address of an argument on TOS.
This method selects the correct instruction based on the value
of argNo.
Add the instruction to load the address of an argument on TOS . This method selects the correct instruction based on the value of argNo .
public void LoadArgAdr(int argNo) {
            if (argNo <= maxUByteVal) {
                AddToBuffer(new UIntInstr(IntOp.ldarga_s,(uint)argNo));
            } else {
                AddToBuffer(new UIntInstr(IntOp.ldarga,(uint)argNo));
            }
        }
public void LoadArgAdr ( int argNo ) { if ( argNo <= maxUByteVal ) { AddToBuffer ( new UIntInstr ( IntOp . ldarga_s , ( uint ) argNo ) ) ; } else { AddToBuffer ( new UIntInstr ( IntOp . ldarga , ( uint ) argNo ) ) ; } }
Add the instruction to load the address of an argument on TOS.
Add the instruction to load the address of an argument on TOS .
argNo
int
the number of the argument
the number of the argument