/// <summary> /// Initializes a new instance of the <see cref="AssemblyFactory" /> class. /// </summary> /// <param name="memorySharp">The reference of the <see cref="MemorySharp" /> object.</param> internal AssemblyFactory(MemoryBase memorySharp) { // Save the parameter MemorySharp = memorySharp; // Create the tool Assembler = new Fasm32Assembler(); }
public static bool CheckFasm32(out string error) { error = null; try { var unused = new Fasm32Assembler().Assemble("nop"); return(true); } catch (FileNotFoundException ex) { error = "Fasm32 assembly not found."; LogTo.Warning(ex, error); return(false); } catch (Exception ex) { error = "Exception while checking for Fasm32 assembly."; LogTo.Error(ex, error); return(false); } }