Ejemplo n.º 1
0
        /// <summary>
        /// Create a RegSet that associates the register in the specified array.  When
        /// any register needs to be written, they are all written in the order the
        /// registers appear in the array
        /// </summary>
        /// <param name="regArray"></param>
        /// <param name="indexFirstReg"></param>
        /// <param name="indexLastReg"></param>
        public static void CreateRegSet(IRegister[] regArray, int indexFirstReg, int indexLastReg)
        {
            // NOTE: RegSet "installs" the instance in each of the registers, so nothing
            //       else needs to keep track of the instance
// ReSharper disable UnusedVariable
            var instance = new RegSet(regArray, indexFirstReg, indexLastReg);
// ReSharper restore UnusedVariable
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Should ONLY be called by the RegSet constructor to turn
 /// a register into part of a RegSet.
 /// </summary>
 /// <param name="rs">Reference to the containing register set for a set of registers.</param>
 internal void PutRegInRegSet(RegSet rs)
 {
     mRegSet = rs;
 }