public MEM(REG reg, MemoryStructureType type = MemoryStructureType.DWord) { if (!IsValidRegistry(reg)) { throw new ArgumentException(); } _register = reg; _type = type; }
private static bool IsValidRegistry(REG reg) => reg.IsValidExpressionForMemory();