Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 public void LoadGTEControlRegisterFile()
 {
     _regHelper.ReadGTEControlRegisterList();
 }