Skip to content

Commit

Permalink
Merge pull request #35 from ZehMatt/refactor/assembler
Browse files Browse the repository at this point in the history
Refactor assembler
  • Loading branch information
ZehMatt authored Nov 4, 2021
2 parents be50b87 + fe04fe7 commit e8fae4a
Show file tree
Hide file tree
Showing 21 changed files with 860 additions and 12,110 deletions.
3 changes: 2 additions & 1 deletion bin/dotplugins/example/AssemblerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public AssemblerTest()
[Command("TestAssembler")]
public void BasicAssembly(string[] args)
{
nuint ip = Thread.Active.Nip;
nuint ip = Thread.Active != null ? Thread.Active.Nip : 0;
using (var asm = new Assembler(ip))
{
#if _X64_
Expand Down Expand Up @@ -110,4 +110,5 @@ public void AssemblerWithLabels(string[] args)

UI.Disassembly.Update();
}

}
27 changes: 26 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
[*.cs]

indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
# CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = suggestion

[*.cpp]
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.hpp]
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.h]
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
8 changes: 6 additions & 2 deletions src/Bindings/Bindings.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@
<ClCompile Include="Breakpoints.cpp" />
<ClCompile Include="Commands.cpp" />
<ClCompile Include="Debugger.cpp" />
<ClCompile Include="Decoder.cpp" />
<ClCompile Include="Encoder.cpp" />
<ClCompile Include="Expressions.cpp" />
<ClCompile Include="Instruction.cpp" />
<ClCompile Include="Instruction.Decoder.cpp" />
<ClCompile Include="Instruction.Encoder.cpp" />
<ClCompile Include="Instruction.Generator.cpp" />
<ClCompile Include="Logging.cpp" />
<ClCompile Include="Memory.cpp" />
<ClCompile Include="Module.cpp" />
Expand All @@ -188,7 +189,10 @@
<ItemGroup>
<ClInclude Include="Decoder.Converter.hpp" />
<ClInclude Include="Encoder.Converter.hpp" />
<ClInclude Include="Instruction.Decoder.hpp" />
<ClInclude Include="Instruction.EFlags.hpp" />
<ClInclude Include="Instruction.Encoder.hpp" />
<ClInclude Include="Instruction.Generator.hpp" />
<ClInclude Include="Instruction.hpp" />
<ClInclude Include="Instruction.Meta.hpp" />
<ClInclude Include="Instruction.Operand.hpp" />
Expand Down
10 changes: 7 additions & 3 deletions src/Bindings/Bindings.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,31 @@
<ClCompile Include="Memory.cpp" />
<ClCompile Include="Thread.cpp" />
<ClCompile Include="Instruction.cpp" />
<ClCompile Include="Decoder.cpp" />
<ClCompile Include="Commands.cpp" />
<ClCompile Include="Expressions.cpp" />
<ClCompile Include="UI.cpp" />
<ClCompile Include="Module.cpp" />
<ClCompile Include="Encoder.cpp" />
<ClCompile Include="Symbols.cpp" />
<ClCompile Include="Settings.cpp" />
<ClCompile Include="Process.cpp" />
<ClCompile Include="Instruction.Generator.cpp" />
<ClCompile Include="Instruction.Encoder.cpp" />
<ClCompile Include="Instruction.Decoder.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Instruction.hpp" />
<ClInclude Include="Register.hpp" />
<ClInclude Include="Mnemonic.hpp" />
<ClInclude Include="Encoder.Converter.hpp" />
<ClInclude Include="Instruction.Meta.hpp" />
<ClInclude Include="Instruction.Operand.hpp" />
<ClInclude Include="Instruction.Operands.hpp" />
<ClInclude Include="Instruction.EFlags.hpp" />
<ClInclude Include="Symbols.hpp" />
<ClInclude Include="Marshal.hpp" />
<ClInclude Include="Decoder.Converter.hpp" />
<ClInclude Include="Instruction.Generator.hpp" />
<ClInclude Include="Instruction.Encoder.hpp" />
<ClInclude Include="Instruction.Decoder.hpp" />
<ClInclude Include="Instruction.Meta.hpp" />
</ItemGroup>
</Project>
Loading

0 comments on commit e8fae4a

Please sign in to comment.