2010-10-18 95 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組成操作碼字節。