2010-10-18 105 views
0

我正在阅读这本书The Art of Assembly Language。我遇到了这一段。关于汇编语言的问题

To determine a particular instruction’s opcode, you need only select the 
appropriate bits for the iii, rr, and mmm fields. For 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. 

这里我不明白什么是iii,rr和mmm?任何人都可以解释吗?提前致谢。

回答

2

“iii”表示三位字段(因为有三个i),“rr”是两位字段,“mmm”表示另一个三位字段。这样使用字母的原因是,当你看到“iiirrmm”时,你知道哪些位对应于操作码中的哪些字段。

+0

谢谢。它有帮助。 – narayanpatra 2010-10-18 16:02:38

0

它们是操作码中的位。序列iiirrmmm组成操作码字节。