Beispiel #1
0
        //------------------------------------------------------------
        // OP Label形式の命令コードを追加する。
        public void AddOPCode_Label(BCOpCode.OpType aOP, BCLabel aLabel)
        {
            // OpCode作成
            var opCode = new BCOpCode(
                aOP
                , (short)0
                );

            // 追加されるindexをメモ
            uint index = (uint)mBCOpCodeList.Count;

            // OpCode追加
            mBCOpCodeList.Add(opCode);

            // LabelReference追加
            mBCLabelReferenceList.Add(new BCLabelReference(aLabel, opCode, index));
        }
Beispiel #2
0
        public readonly uint OpCodeIndex; // 解決した情報を代入するOpCodeのインデックス。

        //------------------------------------------------------------
        // コンストラクタ。
        public BCLabelReference(BCLabel aLabel, BCOpCode aOpCode, uint aOpCodeIndex)
        {
            Label       = aLabel;
            OpCode      = aOpCode;
            OpCodeIndex = aOpCodeIndex;
        }