order for encoding x86 instruction prefix bytes

后端 未结 3 2515
一个人的身影
一个人的身影 2021-02-20 18:33

I know that x86 instructions can have a maximum of 4 bytes of prefixes, e.g Lock, rep, segment overrides etc.

Is there any particular order in which they should appear,

3条回答
  •  -上瘾入骨i
    2021-02-20 19:00

    Quote from Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2A: Instruction Set Reference, A-M

    Instruction prefixes are divided into four groups, each with a set of allowable prefix codes. For each instruction, it is only useful to include up to one prefix code from each of the four groups (Groups 1, 2, 3, 4). Groups 1 through 4 may be placed in any order relative to each other.

提交回复
热议问题