What is the maximum length an Intel 386 instruction without any prefixes?

╄→尐↘猪︶ㄣ 提交于 2020-01-06 07:39:13

问题


I have read this answer, but I need to know what is the longest instruction length on Intel 386(which is 32-bit not 64 bit) without using any instruction prefixes.

Based on the manual, it is probably 12:

  • Opcode: 2 bytes
  • MOD/Rm: 1 byte
  • SIB: 1 byte
  • Displacement: 4 bytes
  • Immediate: 4 bytes
  • Total: 12

Is this the correct answer?


回答1:


On 80386 that would be 11 bytes:

  • Opcode: 1 byte
  • MOD/RM: 1 byte
  • SIB: 1 byte
  • Displacement: 4 bytes
  • Immediate: 4 bytes

The 2-byte opcodes are using the 0Fh instruction prefix which obviously is a prefix.



来源:https://stackoverflow.com/questions/34052200/what-is-the-maximum-length-an-intel-386-instruction-without-any-prefixes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!