public static uint ProcessStartPC(string asm, string pcText) { ASMProcessPCResult result = ASMPCHelper.ProcessPC(0, pcText, true, true); uint pc = result.PC; return(ProcessStartPC(asm, pc)); }
public ASMDecoderResult DecodeASM(string hex, string pcText, string spacePadding, bool littleEndian, bool includeAddress, bool useRegAliases) { ClearErrorText(); ASMProcessPCResult result = ASMPCHelper.ProcessPC(0, pcText, true, true); uint pc = result.PC; _errorTextBuilder.Append(result.ErrorMessage); return(DecodeASM(hex, pc, spacePadding, littleEndian, includeAddress, useRegAliases, false)); }
public int DecodeASMToFile(string inputFilename, string outputFilename, bool littleEndian, bool useRegAliases, string pcText) { //uint pc = ASMPCHelper.ProcessPC(0, pcText); ASMProcessPCResult processPCResult = ASMPCHelper.ProcessPC(0, pcText, false, true); uint pc = processPCResult.PC; _errorTextBuilder.Append(processPCResult.ErrorMessage); return(DecodeASMToFile(inputFilename, outputFilename, littleEndian, useRegAliases, pc)); }
public ASMEncoderResult EncodeASM(string asm, string pcText, string spacePadding, bool includeAddress, bool littleEndian) { ClearErrorText(); ASMProcessPCResult result = ASMPCHelper.ProcessPC(0, pcText, true, true); uint pc = result.PC; _errorTextBuilder.Append(result.ErrorMessage); return(EncodeASM(asm, pc, spacePadding, includeAddress, littleEndian, false)); }
public ASMCheckResult CheckASM(string asm, string pcText, bool littleEndian, bool useRegAliases, bool reEncode = true, ICollection <ASMCheckCondition> conditions = null) { _errorTextBuilder = new StringBuilder(); ASMProcessPCResult result = ASMPCHelper.ProcessPC(0, pcText, true, true); uint pc = result.PC; _errorTextBuilder.Append(result.ErrorMessage); return(CheckASM(asm, pc, littleEndian, useRegAliases, reEncode, conditions, false)); }