Add the getters in Instruction.Info.cs
@@ -453,6 +453,15 @@ namespace Iced.Intel {
get => Code.IsJccNear();
}
+ /// <summary>
+ /// Checks if it's a <c>Jcxz SHORT</c>, <c>Jecxz SHORT</c> or <c>Jrcxz SHORT</c> instruction
+ /// </summary>
+ /// <returns></returns>
+ public readonly bool IsJcxShort {
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ get => Code.IsJcxShort();
+ }
+
/// <summary>
/// Checks if it's a <c>Jcc SHORT</c> instruction
/// </summary>
@@ -552,6 +561,25 @@ namespace Iced.Intel {
get => Code.IsCallFarIndirect();
}
+ /// <summary>
+ /// Checks if it's a <c>LOOPcc SHORT</c> instruction
+ /// </summary>
+ /// <returns></returns>
+ public readonly bool IsLoopcc {
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ get => Code.IsLoopcc();
+ }
+
+ /// <summary>
+ /// Checks if it's a <c>LOOP SHORT</c> instruction
+ /// </summary>
+ /// <param name="code">Code value</param>
+ /// <returns></returns>
+ public readonly bool IsLoop {
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ get => Code.IsLoop();
+ }
+
#if MVEX
/// <summary>
/// Checks if it's a <c>JKccD SHORT</c> or <c>JKccD NEAR</c> instruction
