Exemplo n.º 1
0
        private void InstructionView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (InstructionView.SelectedIndices.Count <= 0)
            {
                return;
            }
            if (InstructionView.SelectedIndices.Count <= 0)
            {
                return;
            }
            int             idx         = InstructionView.SelectedIndices[0];
            BaseInstruction Instruction = SelectedStub.Instructions[idx];

            if (!Instruction.Implemented())
            {
                AbsAVal.Text     = "Not Impl";
                AbsBVal.Text     = "Not Impl";
                AbsCVal.Text     = "Not Impl";
                CurOpPseudo.Text = "Not Yet Implemented";
                return;
            }
            StringBuilder PCode = new StringBuilder();

            Instruction.AttainPseudoCode(PCode);
            CurOpPseudo.Text = PCode.ToString();
            SetABCField(Instruction.GetAUsage(), AbsAVal, Instruction.AStringify, Instruction.A);
            SetABCField(Instruction.GetBUsage(), AbsBVal, Instruction.BStringify, Instruction.B);
            if (Instruction.HasC())
            {
                SetABCField(Instruction.GetCUsage(), AbsCVal, Instruction.CStringify, Instruction.C);
            }
            else
            {
                AbsCVal.Text = "";
            }
        }
Exemplo n.º 2
0
 public String DecompileInstruction_A(BaseInstruction BI)
 {
     return(DecompileInstruction(BI.GetAUsage(), BI.AStringify, BI.A));
 }
Exemplo n.º 3
0
 public String StringifyInstruction_A(BaseInstruction BI)
 {
     return(StringifyInstruction(BI.GetAUsage(), BI.AStringify, BI.A));
 }