예제 #1
0
        // -------------------------------------------------------------------------------------------------
        // Initialises the register
        //
        // \param   name
        // The name.
        // \param   display
        // The display.
        // \param   index
        // Zero-based index of the.
        // \param   UiTextBox
        // The text box control.
        // \param   DF
        // The df.
        // -------------------------------------------------------------------------------------------------
        void InitialiseRegister(string name, string display, Z80Register index, TextBox UiTextBox, DisplayFunctionCallback DF)
        {
            RegisterItem reg = new RegisterItem()
            {
                Value = 0, DisplayString = display, uiTextBox = UiTextBox, GetString = DF
            };

            registerData[(int)index] = reg;
        }
예제 #2
0
        void InitialiseRegister(string name, string display, string regex, Z80Register index, TextBox UiTextBox)
        {
            RegisterItem reg = new RegisterItem()
            {
                RegisterName = name, Value = 0, regex = new Regex(regex), DisplayString = display, uiTextBox = UiTextBox, reg = index
            };

            registerData[(int)index] = reg;

            //registerData.Add(new RegisterItem() { RegisterName = name, Value = 0 ,regex = new Regex(regex), DisplayString = display });
            //nameMap.Add(name, registerData.Count - 1);
        }
예제 #3
0
 // -------------------------------------------------------------------------------------------------
 // Displays a simple register described by ri
 //
 // \param [in,out]  ri
 // The ri.
 //
 // \return  A string.
 // -------------------------------------------------------------------------------------------------
 private string DisplaySimpleRegister(ref RegisterItem ri)
 {
     return(ri.Value.ToString(ri.DisplayString));
 }