instrs: Add several AMD-only instructions
- 3DNow! instructions have a trailing immediate byte which indicates the opcode. Decoding this with the existing table structure requires more effort (in particular, a new lookup table after decoding ModRM would be required). Given that AMD even removed 3DNow! over 10 years ago, it appears unlikely that this will ever be fully supported. Adding the RMI-encoded pseudo-instruction "3DNOW" just to support that opcode. - FEMMS is a legacy 3DNow! instruction. - EXTRQ/INSERTQ are instructions with an "unusual" encoding and operation mode. This is another instance of 16-bit immediates. - SVM (AMD's variant of VMX) and SNP instructions are AMD-only.
This commit is contained in:
5
format.c
5
format.c
@@ -342,6 +342,11 @@ fd_format_abs(const FdInstr* instr, uint64_t addr, char* buffer, size_t len)
|
||||
switch (FD_TYPE(instr)) {
|
||||
default:
|
||||
goto nosplitimm;
|
||||
case FDI_SSE_EXTRQ:
|
||||
case FDI_SSE_INSERTQ:
|
||||
splitimm = immediate & 0xff;
|
||||
immediate = (immediate >> 8) & 0xff;
|
||||
break;
|
||||
case FDI_ENTER:
|
||||
splitimm = immediate & 0xffff;
|
||||
immediate = (immediate >> 16) & 0xff;
|
||||
|
||||
Reference in New Issue
Block a user