Skip to content

Commit e5de84a

Browse files
committed
Incremental commit.
1 parent 0c2c4f4 commit e5de84a

File tree

79 files changed

+2780
-3291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2780
-3291
lines changed

Capstone.NET.sln.DotSettings

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ACCESSOR_DECLARATION_BRACES/@EntryValue">END_OF_LINE</s:String>
3131
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ACCESSOR_OWNER_DECLARATION_BRACES/@EntryValue">END_OF_LINE</s:String>
3232
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_LINQ_QUERY/@EntryValue">True</s:Boolean>
33+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_EXPRESSION/@EntryValue">True</s:Boolean>
3334
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue">END_OF_LINE</s:String>
3435
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/CASE_BLOCK_BRACES/@EntryValue">END_OF_LINE</s:String>
3536
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER_SAME_LINE</s:String>
@@ -40,6 +41,8 @@
4041
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_USING_BRACES_STYLE/@EntryValue">ALWAYS_ADD</s:String>
4142
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_WHILE_BRACES_STYLE/@EntryValue">ALWAYS_ADD</s:String>
4243
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INITIALIZER_BRACES/@EntryValue">END_OF_LINE</s:String>
44+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_BINARY_EXPRESSIONS/@EntryValue">True</s:Boolean>
45+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_NESTED_TERNARY/@EntryValue">True</s:Boolean>
4346
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INVOCABLE_DECLARATION_BRACES/@EntryValue">END_OF_LINE</s:String>
4447
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/OTHER_BRACES/@EntryValue">END_OF_LINE</s:String>
4548
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSORHOLDER_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>

CapstoneCMD(NETCore)/Program.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ private static void ShowArm64() {
275275
}
276276
}
277277
}
278-
else if (operand.Type == Arm64OperandType.MrsRegister) {
279-
var mrsRegister = operand.MrsRegister;
278+
else if (operand.Type == Arm64OperandType.MrsSystemRegister) {
279+
var mrsRegister = operand.MrsSystemRegister;
280280
Console.WriteLine("\t\t\t MRS System Register = {0}", mrsRegister);
281281
}
282-
else if (operand.Type == Arm64OperandType.MsrRegister) {
283-
var msrRegister = operand.MsrRegister;
282+
else if (operand.Type == Arm64OperandType.MsrSystemRegister) {
283+
var msrRegister = operand.MsrSystemRegister;
284284
Console.WriteLine("\t\t\t MSR System Register = {0}", msrRegister);
285285
}
286286
else if (operand.Type == Arm64OperandType.PStateField) {

Gee.External.Capstone/Arm/ArmInstructionDetailBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ internal override void Build(CapstoneDisassembler disassembler, NativeInstructio
7373
this.CpsFlag = nativeInstructionDetail.CpsFlag;
7474
this.CpsMode = nativeInstructionDetail.CpsMode;
7575
this.IsUserMode = nativeInstructionDetail.IsUserMode;
76-
this.MemoryBarrierOperation = nativeInstructionDetail.MemoryBarrier;
76+
this.MemoryBarrierOperation = nativeInstructionDetail.MemoryBarrierOperation;
7777
this.Operands = ArmOperand.Create(disassembler, ref nativeInstructionDetail);
7878
this.UpdateFlags = nativeInstructionDetail.UpdateFlags;
7979
this.VectorDataType = nativeInstructionDetail.VectorDataType;

Gee.External.Capstone/Arm/ArmMemoryOperandValue.cs

+6-19
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,12 @@ public sealed class ArmMemoryOperandValue {
3737
/// <param name="nativeMemoryOperandValue">
3838
/// A native ARM memory operand value.
3939
/// </param>
40-
/// <returns>
41-
/// An ARM memory operand value.
42-
/// </returns>
43-
internal static ArmMemoryOperandValue Create(CapstoneDisassembler disassembler, ref NativeArmMemoryOperandValue nativeMemoryOperandValue) {
44-
return new ArmMemoryOperandValueBuilder().Build(disassembler, ref nativeMemoryOperandValue).Create();
45-
}
46-
47-
/// <summary>
48-
/// Create an ARM Memory Operand Value.
49-
/// </summary>
50-
/// <param name="builder">
51-
/// A builder to initialize the object with.
52-
/// </param>
53-
internal ArmMemoryOperandValue(ArmMemoryOperandValueBuilder builder) {
54-
this.Base = builder.Base;
55-
this.Displacement = builder.Displacement;
56-
this.Index = builder.Index;
57-
this.LeftShit = builder.LeftShit;
58-
this.Scale = builder.Scale;
40+
internal ArmMemoryOperandValue(CapstoneDisassembler disassembler, ref NativeArmMemoryOperandValue nativeMemoryOperandValue) {
41+
this.Base = ArmRegister.TryCreate(disassembler, nativeMemoryOperandValue.Base);
42+
this.Displacement = nativeMemoryOperandValue.Displacement;
43+
this.Index = ArmRegister.TryCreate(disassembler, nativeMemoryOperandValue.Index);
44+
this.LeftShit = nativeMemoryOperandValue.LeftShift;
45+
this.Scale = nativeMemoryOperandValue.Scale;
5946
}
6047
}
6148
}

Gee.External.Capstone/Arm/ArmMemoryOperandValueBuilder.cs

-63
This file was deleted.

0 commit comments

Comments
 (0)