static MemoryIdentifier() { GlobalMemory = new MemoryIdentifier(0, new UnknownType()); }
/// <summary> /// Creates an access to the memory whose effective address is <paramref name="ea"/>. /// The data type of the accessed memory is <paramref name="dt"/>. The memory access /// takes place in the address space <paramref name="space"/>. /// </summary> /// <param name="ea">Effective address of the access.</param> /// <param name="dt">Data type of the access.</param> public MemoryAccess(MemoryIdentifier space, Expression ea, DataType dt) : base(dt) { this.MemoryId = space; this.EffectiveAddress = ea; }
/// <summary> /// Creates an access to the memory whose effective address is <paramref name="effectiveAddress"/>. /// The data type of the accessed memory is <paramref name="dt"/>. The memory access /// takes place in the address space <paramref name="space"/>. /// </summary> /// <param name="effectiveAddress">Effective address of the access.</param> /// <param name="dt">Data type of the access.</param> public MemoryAccess(MemoryIdentifier space, Expression effectiveAddress, DataType dt) : base(dt) { this.MemoryId = space; this.EffectiveAddress = effectiveAddress ?? throw new ArgumentNullException(nameof(effectiveAddress)); }
public SegmentedAccess(MemoryIdentifier id, Expression basePtr, Expression ea, DataType dt) : base(id, ea, dt) { this.BasePointer = basePtr; }
static MemoryIdentifier() { g = new MemoryIdentifier(0, new UnknownType()); }