Finding Opcodes by length or something else

怎甘沉沦 提交于 2019-12-13 11:02:37

问题


Is it possibile, given a sequence of bytes x86 instructions into a stream of random bytes, to decode their instructions?

Are opcodes of a fixed length or is there any way to detect those instructions?


回答1:


Is it possibile, given a sequence of bytes x86 instructions into a stream of random bytes, to decode their instructions?

Yes. Many kinds of processors do it. It is one of the easiest task they have.

Are opcodes of a fixed length

No.

or is there any way to detect those instructions?

The first byte(s) of the instruction allow to infer its length. You will find tables easily on the Internet.



来源:https://stackoverflow.com/questions/24585555/finding-opcodes-by-length-or-something-else

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