示例#1
0
        public static uint ProcessStartPC(string asm, string pcText)
        {
            ASMProcessPCResult result = ASMPCHelper.ProcessPC(0, pcText, true, true);
            uint pc = result.PC;

            return(ProcessStartPC(asm, pc));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }
示例#4
0
        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));
        }
示例#5
0
        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));
        }