-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DecodingState variants for displacement operands
Displacement operands affect behavior significantly, so in a progressive decoding scenario it is useful to distinguish between displacement and non-displacement operands. Without distinct DecodingState variants or another signaling mechanism, it is not always possible to detect a displacement operand with limited context of the decoder's state, because indexed instruction tables include some instructions with only non-displacement operands, as well as both types of operands. While disambiguation is only strictly necessary for indexed instructions, for consistency this also replaces the IndexedBitwiseOperand variant with IndexedBitwiseDisplacement, since all bitwise indexed instructions have a displacement as their only operand, as well as RootDisplacement, used in relative jumps.
- Loading branch information
Showing
1 changed file
with
44 additions
and
34 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