-
Hi, Sorry for asking so many questions, but I was wondering if there was a way to get the physical operand size (specifically for imm/disp operands) from a decoded operand. I've found myself often working with a Any help would be appreciated, and again, sorry for making so many discussion posts 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hey, @athre0z is currently working on refactoring the whole I'm curious: Is there a particular reason you have to access the raw values in the formatter? Usually the formatter aims to hide any encoding specific details. To work around your specific problem you could introduce a simple |
Beta Was this translation helpful? Give feedback.
Hey,
@athre0z is currently working on refactoring the whole
.raw
stuff. In fact we are trying to remove most of the stuff fromZydisDecodedInstruction
and provide a different API to query it. The offsets and sizes to the individual segments (prefixes, imm, disp, ...) will still be available tho and it would be a step in the "wrong direction" to add the raw offset/size toZydisDecodedOperand
.I'm curious: Is there a particular reason you have to access the raw values in the formatter? Usually the formatter aims to hide any encoding specific details.
To work around your specific problem you could introduce a simple
int
in your context which you set to0
when a new instruction is being forma…