Skip to content

Commit 0f07f90

Browse files
committed
Incremental commit.
1 parent 3cd6250 commit 0f07f90

File tree

10 files changed

+185
-337
lines changed

10 files changed

+185
-337
lines changed

Capstone.NET.sln

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 15.0.28306.52
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gee.External.Capstone", "Gee.External.Capstone\Gee.External.Capstone.csproj", "{52ECA690-0077-4E38-9139-31C7CF3B6853}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{6EE33AD6-EEB0-44DA-B260-F29646BD8889}"
9-
EndProject
108
Global
119
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1210
Debug|Any CPU = Debug|Any CPU
@@ -29,18 +27,6 @@ Global
2927
{52ECA690-0077-4E38-9139-31C7CF3B6853}.Release|x64.Build.0 = Release|x64
3028
{52ECA690-0077-4E38-9139-31C7CF3B6853}.Release|x86.ActiveCfg = Release|x86
3129
{52ECA690-0077-4E38-9139-31C7CF3B6853}.Release|x86.Build.0 = Release|x86
32-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|Any CPU.Build.0 = Debug|Any CPU
34-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|x64.ActiveCfg = Debug|Any CPU
35-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|x64.Build.0 = Debug|Any CPU
36-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|x86.ActiveCfg = Debug|Any CPU
37-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Debug|x86.Build.0 = Debug|Any CPU
38-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|Any CPU.Build.0 = Release|Any CPU
40-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|x64.ActiveCfg = Release|Any CPU
41-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|x64.Build.0 = Release|Any CPU
42-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|x86.ActiveCfg = Release|Any CPU
43-
{6EE33AD6-EEB0-44DA-B260-F29646BD8889}.Release|x86.Build.0 = Release|Any CPU
4430
EndGlobalSection
4531
GlobalSection(SolutionProperties) = preSolution
4632
HideSolutionNode = FALSE

ConsoleApp1/ConsoleApp1.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

ConsoleApp1/Program.cs

Lines changed: 0 additions & 297 deletions
This file was deleted.

Gee.External.Capstone/Arm/ArmCpsFlag.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Gee.External.Capstone.Arm {
44
/// <summary>
5-
/// ARM CPS Flag Type.
5+
/// ARM CPS Flag.
66
/// </summary>
77
[SuppressMessage("ReSharper", "IdentifierTypo")]
88
[SuppressMessage("ReSharper", "InconsistentNaming")]
99
public enum ArmCpsFlag {
1010
/// <summary>
11-
/// Indicates an invalid, or an uninitialized, CPS flag type.
11+
/// Indicates an invalid, or an uninitialized, CPS flag.
1212
/// </summary>
1313
Invalid = 0,
1414
ARM_CPSFLAG_F = 1,

Gee.External.Capstone/Arm/ArmCpsMode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Gee.External.Capstone.Arm {
44
/// <summary>
5-
/// ARM CPS Mode Type.
5+
/// ARM CPS Mode.
66
/// </summary>
77
[SuppressMessage("ReSharper", "IdentifierTypo")]
88
[SuppressMessage("ReSharper", "InconsistentNaming")]
99
public enum ArmCpsMode {
1010
/// <summary>
11-
/// Indicates an invalid, or an uninitialized, CPS mode type.
11+
/// Indicates an invalid, or an uninitialized, CPS mode.
1212
/// </summary>
1313
Invalid = 0,
1414
ARM_CPSMODE_IE = 2,

Gee.External.Capstone/Arm/ArmOperandType.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,45 @@ public enum ArmOperandType {
77
/// Indicates an invalid, or an uninitialized, operand type.
88
/// </summary>
99
Invalid = 0,
10+
11+
/// <summary>
12+
/// Indicates a register operand.
13+
/// </summary>
1014
Register,
15+
16+
/// <summary>
17+
/// Indicates an immediate operand.
18+
/// </summary>
1119
Immediate,
20+
21+
/// <summary>
22+
/// Indicates a memory operand.
23+
/// </summary>
1224
Memory,
25+
26+
/// <summary>
27+
/// Indicates a floating point operand.
28+
/// </summary>
1329
FloatingPoint,
30+
31+
/// <summary>
32+
/// Indicates a CImmediate operand.
33+
/// </summary>
1434
CImmediate = 64,
35+
36+
/// <summary>
37+
/// Indicates a PImmediate operand.
38+
/// </summary>
1539
PImmediate,
40+
41+
/// <summary>
42+
/// Indicates a SETEND operation operand.
43+
/// </summary>
1644
SetEndOperation,
45+
46+
/// <summary>
47+
/// Indicates a system register operand.
48+
/// </summary>
1749
SystemRegister
1850
}
1951
}

Gee.External.Capstone/Arm64/Arm64OperandType.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,60 @@ public enum Arm64OperandType {
77
/// Indicates an invalid, or an uninitialized, operand type.
88
/// </summary>
99
Invalid = 0,
10+
11+
/// <summary>
12+
/// Indicates a register operand.
13+
/// </summary>
1014
Register,
15+
16+
/// <summary>
17+
/// Indicates an immediate operand.
18+
/// </summary>
1119
Immediate,
20+
21+
/// <summary>
22+
/// Indicates a memory operand.
23+
/// </summary>
1224
Memory,
25+
26+
/// <summary>
27+
/// Indicates a floating point operand.
28+
/// </summary>
1329
FloatingPoint,
30+
31+
/// <summary>
32+
/// Indicates a CImmediate operand.
33+
/// </summary>
1434
CImmediate = 64,
35+
36+
/// <summary>
37+
/// Indicates a MRS system register operand.
38+
/// </summary>
1539
MrsSystemRegister,
40+
41+
/// <summary>
42+
/// Indicates a MSR system register operand.
43+
/// </summary>
1644
MsrSystemRegister,
45+
46+
/// <summary>
47+
/// Indicates a Processor State (PSTATE) field operand.
48+
/// </summary>
1749
PStateField,
50+
51+
/// <summary>
52+
/// Indicates a system operation operand.
53+
/// </summary>
1854
SystemOperation,
55+
56+
/// <summary>
57+
/// Indicates a prefetch operation operand.
58+
/// </summary>
1959
PrefetchOperation,
60+
61+
/// <summary>
62+
/// Indicates a barrier operation operand.
63+
/// </summary>
2064
BarrierOperation,
2165

2266
/// <summary>

Gee.External.Capstone/CapstoneDisassembler.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static bool IsDietModeEnabled {
6262
/// Indicates if the Ethereum EVM architecture is supported. A boolean true indicates it is supported. A
6363
/// boolean false otherwise.
6464
/// </remarks>
65-
public static bool IsEvmSupported {
65+
internal static bool IsEvmSupported {
6666
get {
6767
var value = NativeCapstone.Query(NativeQueryOption.QueryEvmArchitecture);
6868
return value;
@@ -76,7 +76,7 @@ public static bool IsEvmSupported {
7676
/// Indicates if the M680X architecture is supported. A boolean true indicates it is supported. A boolean
7777
/// false otherwise.
7878
/// </remarks>
79-
public static bool IsM680XSupported {
79+
internal static bool IsM680XSupported {
8080
get {
8181
var value = NativeCapstone.Query(NativeQueryOption.QueryM680XArchitecture);
8282
return value;
@@ -132,7 +132,7 @@ public static bool IsPowerPcSupported {
132132
/// Indicates if the SPARC architecture is supported. A boolean true indicates it is supported. A boolean
133133
/// false otherwise.
134134
/// </remarks>
135-
public static bool IsSparcSupported {
135+
internal static bool IsSparcSupported {
136136
get {
137137
var value = NativeCapstone.Query(NativeQueryOption.QuerySparcArchitecture);
138138
return value;
@@ -146,7 +146,7 @@ public static bool IsSparcSupported {
146146
/// Indicates if the SystemZ architecture is supported. A boolean true indicates it is supported. A
147147
/// boolean false otherwise.
148148
/// </remarks>
149-
public static bool IsSystemZSupported {
149+
internal static bool IsSystemZSupported {
150150
get {
151151
var value = NativeCapstone.Query(NativeQueryOption.QuerySystemZArchitecture);
152152
return value;
@@ -160,7 +160,7 @@ public static bool IsSystemZSupported {
160160
/// Indicates if the TMS320C64X architecture is supported. A boolean true indicates it is supported. A
161161
/// boolean false otherwise.
162162
/// </remarks>
163-
public static bool IsTms320C64XSupported {
163+
internal static bool IsTms320C64XSupported {
164164
get {
165165
var value = NativeCapstone.Query(NativeQueryOption.QueryTms320C64XArchitecture);
166166
return value;

Gee.External.Capstone/Gee.External.Capstone.xml

Lines changed: 99 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015 - 2019 Ahmed Garhy
3+
Copyright (c) Ahmed Garhy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)