Principles of Computer Composition (6) Instruction System

1. The basic format of the command

02cdc7b366ba45949fac13dbc8b602e4.png

1.1 Related concepts of machine instructions

Instruction Set (Instruction Set)
a collection of all machine instructions of a machine

  • *Fixed-length instruction set
    • All instructions in the instruction set are the same length!
    • Simple instruction fetch control
  • *Indefinite length instruction set
    • All instructions in the instruction set have long and short lengths 

opcode

 

(1) The length is fixed,
which is used when the instruction word length is long. RISC
such as IBM370 has an 8-bit opcode.
(2) The length is variable.
The opcode is scattered in different fields of the instruction word.
All instructions in the instruction set have long and short lengths.

(3) Extended opcode technology

The number of opcode bits increases as the number of addresses decreases

Every reduction of one can constitute 24 more two-address instructions

address code

6840070e653245ef98d5119d9b0a992d.png

22cd6a918c494166b6d807e0b79d916e.png

 

737d5d3d269943adbd361d43d79ba3ae.png

ce6f4650e2d84b468a2817bc943bd365.png

1518e474c8da4ee89a030d5c070d789a.png

dcff5955bcf24d309b4fee5ab9ac5e29.png 5703ed36bcad4038bd6ffa3bd5fa071f.png

44797d6deb71420b82fb8baaa66b8189.png

352f53478d7d4130834dc99e53808f4c.png

register operation

9bc5425eae3b42459a4e7e4c2b4c4256.png

instruction word length

2b8ee44f26704b8b9b2fa8ccdd40bd90.png

f39126dbde73425aa72c0db72d508cdd.png

7.2 Types and Kinds of Operands

7.2.1 Operand types

96ec326570fe41bca692c04168a99008.png

storage method

60dfa6e32743465b8f1f0db7ffb8dc93.png

6c9a36bcbbaa4150bf60e9f4eb189189.png

7.2.2 Types of operation

  • data transmission
  • Arithmetic Logic Operations
  • shift operation
  • transfer
  • input Output

7.3 Addressing modes

Determine the operand address of this instruction and the instruction address of the next instruction to be executed

384f949a2feb47819bc3bfa1d923e8f8.png

c3b7e70614924ab3a872f0705a5334a6.png

instruction addressing

e82e52020ef14029bd944f8862191c69.png

data addressing

7.3.1 Immediate addressing

6e3e96cf3ec9496db7818604ea9117ac.png

7.3.2 Direct addressing

4d3e7877f90c41c8aa83aff1eda10081.png

 7.3.3 Implicit addressing

34af65db36d7424d9d3238d248693a31.png

7.3.4 Indirect addressing

e4a532251bc4471bb0b87854c532cd3e.png

 7.3.5 Register addressing

cc0e016ae2aa41d38f15f51736ef575b.png

7df14bb32e87456485affed29da4f133.png

 7.3.6 Base Addressing and Indexed Addressing

aa75013b61ac4d5bbec367bf08c0bc02.png

f5a0d7605f5a471580fbee75b2fc4102.pnga18ce4c9c2734438b1dcf7f266c3eec7.png

4b627a255a9f4e159a9afd5c51ccdd2e.png 7.3.7 Relative addressing

2cdfc2a1f0754c2b8283b4000af95d1f.png

 7.3.8 Stack addressing

aec1b95d35c34b858c0bda99c0e25586.png

7527786c208b4ff0af1797ebc39e8a0b.png

7.4 Examples

422cf7bea0814b2695eea9d9658f6bd3.png

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_62377885/article/details/131195967