Exemplo n.º 1
0
        public HashSet <ASMCheckCondition> GetCheckConditions()
        {
            HashSet <ASMCheckCondition> resultSet = ASMCheckHelper.GetStandardCheckConditions();

            if (EncodingMode == ASMEncodingMode.PSP)
            {
                resultSet.Remove(ASMCheckCondition.LoadDelay);
                //resultSet.Remove(ASMCheckCondition.LoadInBranchDelaySlot);
            }
            return(resultSet);
        }
Exemplo n.º 2
0
        public ASMEncodingUtilityHelper(ASMEncodingUtilityHelper utilityHelper)
        {
            _asmEncoder = new ASMEncoder(utilityHelper._asmEncoder);

            _pseudoHelper = _asmEncoder.PseudoHelper;
            _valueHelper  = _pseudoHelper.ValueHelper;
            _labelHelper  = _valueHelper.LabelHelper;

            _formatHelper = _labelHelper.FormatHelper;
            _regHelper    = utilityHelper._regHelper;

            _asmDecoder = new ASMDecoder(_formatHelper, _regHelper);

            _asmCheckHelper = new ASMCheckHelper(_asmEncoder, _asmDecoder);
        }
Exemplo n.º 3
0
        public ASMEncodingUtilityHelper(bool loadDefaults = true)
        {
            _regHelper    = new ASMRegisterHelper();
            _formatHelper = new ASMFormatHelper();
            _labelHelper  = new ASMLabelHelper(_formatHelper);
            _valueHelper  = new ASMValueHelper(_labelHelper);
            _pseudoHelper = new ASMPseudoHelper(_valueHelper, _formatHelper);

            if (loadDefaults)
            {
                _formatHelper.ReadEncodeList(ASMDataFileMap.MIPS_Encoding);
                _regHelper.ReadGPRegisterList();
                _regHelper.ReadVFPURegisterAliasList();
                _regHelper.ReadCop0RegisterList();
                _regHelper.ReadGTEControlRegisterList();
                _regHelper.ReadGTEDataRegisterList();
            }

            _asmEncoder = new ASMEncoder(_pseudoHelper, _valueHelper, _formatHelper, _regHelper);
            _asmDecoder = new ASMDecoder(_formatHelper, _regHelper);

            _asmCheckHelper = new ASMCheckHelper(_asmEncoder, _asmDecoder);
        }