Table of Contents

Struct Instruction

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

A single P-Code instruction with opcode, lexical level, and argument.

public readonly record struct Instruction : IEquatable<Instruction>
Implements
Inherited Members

Constructors

Instruction(Opcode, int, int)

A single P-Code instruction with opcode, lexical level, and argument.

public Instruction(Opcode Op, int Level, int Argument)

Parameters

Op Opcode

The operation code.

Level int

The lexical level argument.

Argument int

The instruction argument or address.

Properties

Argument

The instruction argument or address.

public int Argument { get; init; }

Property Value

int

Level

The lexical level argument.

public int Level { get; init; }

Property Value

int

Op

The operation code.

public Opcode Op { get; init; }

Property Value

Opcode