public ASMEncoder(ASMEncoder encoder) { PseudoHelper = new ASMPseudoHelper(encoder.PseudoHelper); ValueHelper = PseudoHelper.ValueHelper; FormatHelper = ValueHelper.LabelHelper.FormatHelper; RegHelper = encoder.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); }
public ASMCheckHelper(ASMEncoder encoder, ASMDecoder decoder) { Encoder = encoder; Decoder = decoder; }