public ASMEncoder(ASMPseudoHelper pseudoHelper, ASMValueHelper valueHelper, ASMFormatHelper formatHelper, ASMRegisterHelper regHelper) { PseudoHelper = pseudoHelper; ValueHelper = valueHelper; FormatHelper = formatHelper; RegHelper = regHelper; _errorTextBuilder = new StringBuilder(); }
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); }
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); }