Пример #1
0
        public static void DetermineSize(this IInstructionWithDestination aThis, IInstructionWithSize aThis2, byte aSize) {
            if (aSize == 0) {
                if (aThis.DestinationReg != null && !aThis.DestinationIsIndirect) {
					aThis2.Size = Registers.GetSize(aThis.DestinationReg.Value);
                    return;
                }
                if (aThis.DestinationRef != null && !aThis.DestinationIsIndirect) {
                    aThis2.Size = 32;
                    return;
                }
            }
        }
Пример #2
0
 public static void DetermineSize(this IInstructionWithDestination aThis, IInstructionWithSize aThis2, byte aSize)
 {
     if (aSize == 0)
     {
         if (aThis.DestinationReg != null && !aThis.DestinationIsIndirect)
         {
             aThis2.Size = Registers.GetSize(aThis.DestinationReg.Value);
             return;
         }
         if (aThis.DestinationRef != null && !aThis.DestinationIsIndirect)
         {
             aThis2.Size = 32;
             return;
         }
     }
 }