Skip to content

Instruction ​

A SNES (Ricoh 5A22 / 65c816) assembly instruction.

Kind: Struct

Namespace: ConnectorLib.ConsoleAssembler.SNES

Inheritance: IEnumerable → IEnumerable<byte> → IReadOnlyCollection<byte> → IReadOnlyList<byte>

Public Constructors

Instruction(NESInstruction opcode)

Instruction(SNESInstruction opcode)

Instruction(NESInstruction opcode, Address operand, byte pValue = 48)

Instruction(SNESInstruction opcode, Address operand, byte pValue = 48)

Instruction(NESInstruction opcode, ushort operand, byte pValue = 48)

Instruction(SNESInstruction opcode, ushort operand, byte pValue = 48)

Instruction(NESInstruction opcode, uint operand, byte pValue = 48)

Instruction(SNESInstruction opcode, uint operand, byte pValue = 48)

Instruction(NESInstruction opcode, ReadOnlySpan operands, byte pValue = 48)

Instruction(SNESInstruction opcode, ReadOnlySpan operands, byte pValue = 48)

Instruction(ReadOnlySpan bytes)

Instruction(byte* bytes, int length)

Public Member Functions

InstructionEnumerator

GetEnumerator()

Gets an enumerator that iterates through the instruction bytes.

Public Attributes

int

Count

The number of bytes in the instruction.

Properties

byte

Item

[get, ]

Gets an instruction byte at the specified index.