mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-11 09:22:00 +00:00
25 lines
721 B
C#
25 lines
721 B
C#
|
namespace ARMeilleure.IntermediateRepresentation
|
||
|
{
|
||
|
class MemoryOperand : Operand
|
||
|
{
|
||
|
public Operand BaseAddress { get; set; }
|
||
|
public Operand Index { get; set; }
|
||
|
|
||
|
public Multiplier Scale { get; }
|
||
|
|
||
|
public int Displacement { get; }
|
||
|
|
||
|
public MemoryOperand(
|
||
|
OperandType type,
|
||
|
Operand baseAddress,
|
||
|
Operand index = null,
|
||
|
Multiplier scale = Multiplier.x1,
|
||
|
int displacement = 0) : base(OperandKind.Memory, type)
|
||
|
{
|
||
|
BaseAddress = baseAddress;
|
||
|
Index = index;
|
||
|
Scale = scale;
|
||
|
Displacement = displacement;
|
||
|
}
|
||
|
}
|
||
|
}
|