Skip to content

OperandSizeAttribute ​

Attribute to specify the size of an instruction operand.

Kind: Class

Namespace: ConnectorLib.ConsoleAssembler.SNES

Inheritance: Attribute

Public Constructors

OperandSizeAttribute(byte size)

Creates a new instance of the ConnectorLib.ConsoleAssembler.SNES.OperandSizeAttribute class with the specified instruction size.

OperandSizeAttribute(bool mSized, bool xSized = false)

Creates a new instance of the ConnectorLib.ConsoleAssembler.SNES.OperandSizeAttribute class with the specified instruction size.

OperandSizeAttribute(byte size, bool mSized, bool xSized)

Creates a new instance of the ConnectorLib.ConsoleAssembler.SNES.OperandSizeAttribute class with the specified instruction size.

Public Member Functions

byte

TotalSize(byte pRegister)

Calculates the total size of the operand based on the specified P-register value.

Properties

byte

Size

[get, ]

The size of the operand in bytes.

bool

MSized

[get, ]

If true, the operand size is increased by 1 if the P-register M-bit is set.

bool

XSized

[get, ]

If true, the operand size is increased by 1 if the P-register X-bit is set.