diff options
author | Simon Wanner <skyrising@pvpctutorials.de> | 2022-03-27 19:40:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-26 12:50:38 +0100 |
commit | 4041ea835ce67c81c5eca15d2d0a2878b179ed59 (patch) | |
tree | 29afec0e9a92b852bdd0f68c1eafd303d71b3ec2 /Userland/Libraries/LibX86/Instruction.h | |
parent | bf768ed215101579a1f8fd311e8210cd9a18c76d (diff) | |
download | serenity-4041ea835ce67c81c5eca15d2d0a2878b179ed59.zip |
LibX86: Add OP_regW_immW
This is a variation of OP_reg32_imm32 that turns into
"OP_reg64_imm64" with a REX.W prefix.
Diffstat (limited to 'Userland/Libraries/LibX86/Instruction.h')
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index c8f65cf97e..547a2e6c48 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -160,6 +160,7 @@ enum InstructionFormat { __EndFormatsWithRMByte, OP_reg32_imm32, + OP_regW_immW, OP_AL_imm8, OP_AX_imm16, OP_EAX_imm32, @@ -210,6 +211,7 @@ enum InstructionFormat { }; static constexpr unsigned CurrentAddressSize = 0xB33FBABE; +static constexpr unsigned CurrentOperandSize = 0xB33FB00F; struct InstructionDescriptor { InstructionHandler handler { nullptr }; |