-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from hakril/improv_simple_assembly
Improve handling of some instructions in simple x86/x64
- Loading branch information
Showing
17 changed files
with
3,409 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define MEM_EXTENDED_PARAMETER_TYPE_BITS 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
typedef enum MEM_EXTENDED_PARAMETER_TYPE { | ||
MemExtendedParameterInvalidType = 0, | ||
MemExtendedParameterAddressRequirements = 1, | ||
MemExtendedParameterNumaNode = 2, | ||
MemExtendedParameterPartitionHandle = 3, | ||
MemExtendedParameterUserPhysicalHandle = 4, | ||
MemExtendedParameterAttributeFlags = 5, | ||
MemExtendedParameterImageMachine = 6, | ||
MemExtendedParameterMax | ||
} *PMEM_EXTENDED_PARAMETER_TYPE; | ||
|
||
|
||
typedef struct _MEM_ADDRESS_REQUIREMENTS { | ||
PVOID LowestStartingAddress; | ||
PVOID HighestEndingAddress; | ||
SIZE_T Alignment; | ||
} MEM_ADDRESS_REQUIREMENTS, *PMEM_ADDRESS_REQUIREMENTS; | ||
|
||
|
||
typedef struct MEM_EXTENDED_PARAMETER { | ||
struct { | ||
ULONG64 Type : 8; // MEM_EXTENDED_PARAMETER_TYPE_BITS -> define not handled in parser here | ||
ULONG64 Reserved : 56; // 64 - MEM_EXTENDED_PARAMETER_TYPE_BITS -> define not handled in parser here | ||
} DUMMYSTRUCTNAME; | ||
union { | ||
ULONG64 ULong64; | ||
PVOID Pointer; | ||
SIZE_T Size; | ||
HANDLE Handle; | ||
ULONG ULong; | ||
} DUMMYUNIONNAME; | ||
} MEM_EXTENDED_PARAMETER, *PMEM_EXTENDED_PARAMETER; |
Oops, something went wrong.