src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add the instruction to load the address of a local on TOS.
/// This method selects the correct instruction based on the
/// value of locNo.
/// </summary>
/// <param name="locNo">the number of the local</param>
Add the instruction to load the address of a local on TOS.
This method selects the correct instruction based on the
value of locNo.
Add the instruction to load the address of a local on TOS . This method selects the correct instruction based on the value of locNo .
public void LoadLocalAdr(int locNo) {
            if (locNo <= maxUByteVal) {
                AddToBuffer(new UIntInstr(IntOp.ldloca_s,(uint)locNo));
            } else {
                AddToBuffer(new UIntInstr(IntOp.ldloca,(uint)locNo));
            }
        }
public void LoadLocalAdr ( int locNo ) { if ( locNo <= maxUByteVal ) { AddToBuffer ( new UIntInstr ( IntOp . ldloca_s , ( uint ) locNo ) ) ; } else { AddToBuffer ( new UIntInstr ( IntOp . ldloca , ( uint ) locNo ) ) ; } }
Add the instruction to load the address of a local on TOS.
Add the instruction to load the address of a local on TOS .
locNo
int
the number of the local
the number of the local