本文整理汇总了C#中SimpleForth.Forth.PopInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Forth.PopInt64方法的具体用法?C# Forth.PopInt64怎么用?C# Forth.PopInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleForth.Forth
的用法示例。
在下文中一共展示了Forth.PopInt64方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Int16Bang
public static void Int16Bang(Forth f)
{
long offset = f.PopInt64();
long value = f.PopInt64();
f.byteMemory.WriteInt16(checked((int)offset), unchecked((short)value));
}
示例2: At
public static void At(Forth f)
{
long index = f.PopInt64();
f.dStack.Push(f.memory[(int)index]);
}
示例3: Off
public static void Off(Forth f)
{
long index = f.PopInt64();
f.memory[(int)index] = 0L;
}
示例4: Modulus
public static void Modulus(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64(unchecked(a % b));
}
示例5: IsNotGreaterThan
public static void IsNotGreaterThan(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushBool(a <= b);
}
示例6: Add
public static void Add(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64(unchecked(a + b));
}
示例7: Multiply
public static void Multiply(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64(unchecked(a * b));
}
示例8: ByteHereReset
public static void ByteHereReset(Forth f)
{
long l = f.PopInt64();
f.byteHere = l;
}
示例9: Max
public static void Max(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64((a > b) ? a : b);
}
示例10: Int32Comma
public static void Int32Comma(Forth f)
{
long value = f.PopInt64();
f.byteMemory.WriteInt32(f.byteHere, unchecked((int)value));
f.byteHere += 4;
}
示例11: Int64Comma
public static void Int64Comma(Forth f)
{
long value = f.PopInt64();
f.byteMemory.WriteInt64(f.byteHere, value);
f.byteHere += 8;
}
示例12: Int16Comma
public static void Int16Comma(Forth f)
{
long value = f.PopInt64();
f.byteMemory.WriteInt16(f.byteHere, unchecked((short)value));
f.byteHere+=2;
}
示例13: ByteComma
public static void ByteComma(Forth f)
{
long value = f.PopInt64();
f.byteMemory[f.byteHere] = unchecked((byte)value);
f.byteHere++;
}
示例14: Int64Bang
public static void Int64Bang(Forth f)
{
long offset = f.PopInt64();
long value = f.PopInt64();
f.byteMemory.WriteInt64(checked((int)offset), value);
}
示例15: AuxPickBang
public static void AuxPickBang(Forth f)
{
long pos = f.PopInt64();
if (pos >= 256 || pos < 0) throw new ArgumentException("apick! too far");
object v = f.dStack.Pop();
f.aStack[(int)pos] = v;
}