Class VmState
Snapshot of the current VM state.
public sealed record VmState : IEquatable<VmState>
- Inheritance
-
VmState
- Implements
- Inherited Members
Constructors
VmState(int, int, int, int[], Instruction?)
Snapshot of the current VM state.
public VmState(int P, int B, int T, int[] Stack, Instruction? CurrentInstruction)
Parameters
PintProgram counter.
BintBase pointer.
TintTop-of-stack pointer.
Stackint[]Stack snapshot.
CurrentInstructionInstruction?Instruction at the current program counter.
Properties
B
Base pointer.
public int B { get; init; }
Property Value
CurrentInstruction
Instruction at the current program counter.
public Instruction? CurrentInstruction { get; init; }
Property Value
P
Program counter.
public int P { get; init; }
Property Value
Stack
Stack snapshot.
public int[] Stack { get; init; }
Property Value
- int[]
T
Top-of-stack pointer.
public int T { get; init; }