diff --git a/Iced/Intel/IFormatterOptionsProvider.cs b/Iced/Intel/IFormatterOptionsProvider.cs index 221fa9d43..a4e8a1d31 100644 --- a/Iced/Intel/IFormatterOptionsProvider.cs +++ b/Iced/Intel/IFormatterOptionsProvider.cs @@ -88,6 +88,20 @@ namespace Iced.Intel { MemorySizeNever = (uint)MemorySizeOptions.Never << (int)MemorySizeShift, } + /// + /// Extension methods + /// + public static class FormatterOperandOptionsExtensions { + /// + /// Returns new options with a new value + /// + /// Operand options + /// Memory size options + /// + public static FormatterOperandOptions WithMemorySize(this FormatterOperandOptions self, MemorySizeOptions options) => + (self & ~FormatterOperandOptions.MemorySizeMask) | (FormatterOperandOptions)((uint)options << (int)FormatterOperandOptions.MemorySizeShift); + } + /// /// Gets initialized with the default options and can be overridden by a /// diff --git a/Iced/Intel/ISymbolResolver.cs b/Iced/Intel/ISymbolResolver.cs index 8fcc926fa..d94dc98d7 100644 --- a/Iced/Intel/ISymbolResolver.cs +++ b/Iced/Intel/ISymbolResolver.cs @@ -22,7 +22,7 @@ using System; namespace Iced.Intel { /// - /// Used by a to resolve symbols. It can also override number formatting options + /// Used by a to resolve symbols /// public interface ISymbolResolver { ///