本文整理匯總了C#中SimpleForth.Forth.PopUInt64方法的典型用法代碼示例。如果您正苦於以下問題:C# Forth.PopUInt64方法的具體用法?C# Forth.PopUInt64怎麽用?C# Forth.PopUInt64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SimpleForth.Forth
的用法示例。
在下文中一共展示了Forth.PopUInt64方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IsNotGreaterThanUnsigned
public static void IsNotGreaterThanUnsigned(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a <= b);
}
示例2: IsNotLessThanUnsigned
public static void IsNotLessThanUnsigned(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a >= b);
}
示例3: Equals
public static void Equals(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a == b);
}
示例4: DoesNotEqual
public static void DoesNotEqual(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a != b);
}
示例5: And
public static void And(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushUInt64(a & b);
}
示例6: Xor
public static void Xor(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushUInt64(a ^ b);
}
示例7: UnsignedDivide
public static void UnsignedDivide(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushUInt64(unchecked(a / b));
}
示例8: UnsignedModulus
public static void UnsignedModulus(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushUInt64(unchecked(a % b));
}
示例9: Invert
public static void Invert(Forth f)
{
ulong u = f.PopUInt64();
f.PushUInt64(~u);
}
示例10: UnsignedMax
public static void UnsignedMax(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushUInt64((a > b) ? a : b);
}
示例11: RShift
public static void RShift(Forth f)
{
ulong shiftCount = f.PopUInt64();
ulong value = f.PopUInt64();
if (shiftCount > 63)
{
f.PushUInt64(0ul);
}
else
{
f.PushUInt64(value >> (int)shiftCount);
}
}
示例12: ZeroExtendInt32
public static void ZeroExtendInt32(Forth f)
{
ulong value = f.PopUInt64();
value &= 0xFFFFFFFFul;
f.PushUInt64(value);
}
示例13: SignExtendInt32
public static void SignExtendInt32(Forth f)
{
ulong value = f.PopUInt64();
if ((value & 0x80000000ul) != 0) value |= 0xFFFFFFFF80000000ul;
else value &= 0x7FFFFFFFul;
f.PushUInt64(value);
}