本文整理汇总了C#中SimpleForth.Forth.PushInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Forth.PushInt64方法的具体用法?C# Forth.PushInt64怎么用?C# Forth.PushInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleForth.Forth
的用法示例。
在下文中一共展示了Forth.PushInt64方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AuxDepth
public static void AuxDepth(Forth f)
{
f.PushInt64((long)(f.aStack.Depth));
}
示例2: OnePlus
public static void OnePlus(Forth f)
{
long x = f.PopInt64();
f.PushInt64(x + 1L);
}
示例3: OneMinus
public static void OneMinus(Forth f)
{
long x = f.PopInt64();
f.PushInt64(x - 1L);
}
示例4: Here
public static void Here(Forth f)
{
f.PushInt64((long)(f.here));
}
示例5: RefForward
public void RefForward(Forth f)
{
f.PushInt64((long)Here);
Add(null);
}
示例6: Subtract
public static void Subtract(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64(unchecked(a - b));
}
示例7: Divide
public static void Divide(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushInt64(unchecked(a / b));
}
示例8: Int32At
public static void Int32At(Forth f)
{
long offset = f.PopInt64();
uint l = unchecked((uint)f.byteMemory.ReadInt32(checked((int)offset)));
f.PushInt64((long)l);
}
示例9: Int64At
public static void Int64At(Forth f)
{
long offset = f.PopInt64();
long l = f.byteMemory.ReadInt64(checked((int)offset));
f.PushInt64(l);
}
示例10: ByteAt
public static void ByteAt(Forth f)
{
long offset = f.PopInt64();
byte b = f.byteMemory[checked((int)offset)];
f.PushInt64((long)b);
}
示例11: Int16At
public static void Int16At(Forth f)
{
long offset = f.PopInt64();
ushort u = unchecked((ushort)f.byteMemory.ReadInt16(checked((int)offset)));
f.PushInt64((long)u);
}
示例12: RealAddress
public static void RealAddress(Forth f)
{
object obj = f.dStack.Pop();
MemoryAccessor ma = (MemoryAccessor)obj;
f.PushInt64(ma.RealAddress);
}
示例13: ByteArraySize
public static void ByteArraySize(Forth f)
{
byte[] bArr = f.PopByteArray();
f.PushInt64((long)(bArr.Length));
}
示例14: ByteArrayAt
public static void ByteArrayAt(Forth f)
{
byte[] bArr = f.PopByteArray();
long index = f.PopInt64();
if (index < 0 || index > ((long)(bArr.Length))) throw new IndexOutOfRangeException("Index " + index + " must be 0 to " + bArr.Length);
f.PushInt64((long)(bArr[(int)index]));
}
示例15: Negate
public static void Negate(Forth f)
{
long l = f.PopInt64();
f.PushInt64(unchecked(-l));
}