Abraham.DLXChecker.I_CB C# (CSharp) Method

I_CB() private method

条件分支指令,包括BEQZ和BNEZ,格式为beqz r2,label_1
private I_CB ( string cmd ) : void
cmd string
return void
        void I_CB(string cmd)
        {
            skip_space();
            int src_r = R();
            skip_space();
            if (cur_token != ',')
                error("指令不完整,期望逗号(,)");
            get_src_token();
            skip_space();
            string label = get_word().ToUpper();

            #if debug
            Debug(String.Format("condition branch to  {0}", label));
            #endif

            if (check_text_symbol(label) == false)
                add_to_wait(label, line, line_at);
            format_line.AppendFormat("R{0}, {1}", src_r, label);
        }