コード例 #1
0
        private void AddressList_SelectedIndexChanged(object sender, EventArgs e)
        {
            HideFloatingControlpanel();

            string code = this.AddressList.Text;

            ScriptCodeName.Text = code;
            int    pos;
            string jumpCode = " BL 0x";

            pos = code.IndexOf(jumpCode);
            if (pos < 0)
            {
                jumpCode = " B 0x";
                pos      = code.IndexOf(jumpCode);
            }
            if (pos > 0)
            {
                pos            += jumpCode.Length;
                ParamSrc1.Value = U.atoh(code.Substring(pos));

                ParamLabel1.Show();
                ParamSrc1.Show();
                ParamExplain1.Show();
            }
            else
            {
                ParamSrc1.Value = 0;
                ParamLabel1.Hide();
                ParamSrc1.Hide();
                ParamExplain1.Hide();
            }
        }
コード例 #2
0
        void UpdateFloatingControlpanel()
        {
            string code = this.AddressList.Text;

            ScriptCodeName.Text = code;
            int    pos;
            string jumpCode = " BL 0x";

            pos = code.IndexOf(jumpCode);
            if (pos < 0)
            {
                jumpCode = " B 0x";
                pos      = code.IndexOf(jumpCode);
            }
            if (pos > 0)
            {
                pos            += jumpCode.Length;
                ParamSrc1.Value = U.atoh(code.Substring(pos));

                ParamLabel1.Show();
                ParamSrc1.Show();
                ParamExplain1.Show();
            }
            else
            {
                ParamSrc1.Value = 0;
                ParamLabel1.Hide();
                ParamSrc1.Hide();
                ParamExplain1.Hide();
            }
        }