-
-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add size and offset to immediate and memory operand structs (#489)
- Loading branch information
Showing
9 changed files
with
68 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
# Porting Guide v4 -> v5 | ||
|
||
# Encoder | ||
### Encoder | ||
|
||
- `ZydisRegisterGetLargestEnclosing` will now return the given register itself for registers that don't have | ||
an enclosing register. Previously it would return `ZYDIS_REGISTER_NONE` in these cases. | ||
- `ZydisEncoderDecodedInstructionToEncoderRequest` now expects exactly `instruction->operand_count_visible` to be | ||
passed, not `operand_count_visible` at maximum. Passing a lower value was previously allowed but didn't really | ||
make much sense at all. | ||
make much sense at all. | ||
|
||
### Decoder | ||
|
||
- `ZydisDecodedOperandImm` struct was changed | ||
- Added field `offset` | ||
- Contains the offset of the immediate data, relative to the beginning of the instruction, in bytes. | ||
- Added field `size` | ||
- Contains the physical immediate size, in bits. | ||
- `ZydisDecodedOperandMemDisp_` struct was changed | ||
- Added field `offset` | ||
- Contains the offset of the immediate data, relative to the beginning of the instruction, in bytes. | ||
- Added field `size` | ||
- Contains the physical displacement size, in bits. | ||
- Removed field `has_displacement` | ||
- A `size` of 0 indicates that there is no displacement, effectively replacing the need for `has_displacement`. |
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
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
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
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