示例#1
0
        IEnumerator Reverse(Word w, int data)
        {
            int len = w.bits.Count;
            List <Bit.BitValue> values = new List <Bit.BitValue>();

            for (int k = 0; k < len; k++)
            {
                values.Add(((data >> k) & 1) > 0 ? Bit.BitValue.ONE : Bit.BitValue.ZERO);
            }

            Reverser reverser = new Reverser();

            yield return(reverser.Go(w.bits, values));
        }