开发者

What is iii, rr and mmm?

开发者 https://www.devze.com 2023-01-20 19:45 出处:网络
I am reading the book The Art of Assembly Language. I came across this paragraph. To determine a particular instruction’s opcode, you need only select the appropriate bits for the iii, rr, and mmm

I am reading the book The Art of Assembly Language. I came across this paragraph.

To determine a particular instruction’s opcode, you need only select the appropriate bits for the iii, rr, and mmm fields. For 开发者_JAVA技巧example, to encode the mov ax, bx instruction you would select iii=110 (mov reg, reg), rr=00 (ax), and mmm=001 (bx). This produces the one-byte instruction 11000001 or 0C0h.

Here I can't understand what is iii, rr and mmm? Can anybody please explain? Thanks in advance.


  • iii represents a three-bit field (because there are three i's)
  • rr, a two-bit field
  • mmm another three-bit field

The reason letters are used like this is so that when you see iiirrmm, you know which bits correspond to which fields in the opcode.


They're bits in the opcode. The sequence iiirrmmm makes up the opcode byte.

0

精彩评论

暂无评论...
验证码 换一张
取 消