示例#1
0
文件: Or.cs 项目: douglasbarnes/vmcs
        public override void Execute()
        {
            // Fetch operands
            List <byte[]> DestSource = Fetch();

            // Perform the OR.
            byte[]  Result;
            FlagSet ResultFlags = Bitwise.Or(DestSource[0], DestSource[1], out Result);

            // Store results
            Set(Result);
            ControlUnit.SetFlags(ResultFlags);
        }
示例#2
0
 /// <summary>
 /// Returns true if the given basic value type can be used in combination with
 /// a view type.
 /// </summary>
 /// <param name="basicValueType"></param>
 /// <returns>
 /// True if the given value type is a compatible view index type.
 /// </returns>
 internal static bool IsViewIndexType(BasicValueType basicValueType) =>
 Bitwise.Or(
     basicValueType == BasicValueType.Int32,
     basicValueType == BasicValueType.Int64);