Beruflich Dokumente
Kultur Dokumente
(Assembly Language)
Computer Architecture
Dr. Salma Hamdy
10/30/2013
s.hamdy@cis.asu.edu.eg
Chapter 8: CPU
1. 2. 3. 4.
1. Instruction Codes
The general-purpose computer is capable of executing various microoperations, and can be instructed as to what specific sequence of operations it must perform. The user of a computer can control the process by means of a program (set of instructions that specify the operations, operands, and the sequence by which processing has to occur.
10/30/2013 4
Control register
Interpret binary code of instruction. Execute it by issuing a sequence of microoperations.
Every computer has its own unique instruction set. The most important property of a general-purpose computer is the ability to store and execute instructions (stored program concept).
10/30/2013 5
instruction
10/30/2013
10/30/2013
Specify: - Memory word by address. - Processor register by bits to select one among .
9
10/30/2013
10/30/2013
11
10/30/2013
13
2. Computer Registers
Instructions are normally stored in consecutive memory locations and executed sequentially one at a time starting from a specific address.
Counter to calculate address of next instruction. Register for holding memory addresses. Register to store instruction read from memory. Register to manipulate data.
10/30/2013 14
branching
10/30/2013 15
branching
10/30/2013 16
10/30/2013
17
10/30/2013
18
10/30/2013
19
10/30/2013
20
10/30/2013
21
22
10/30/2013
23
10/30/2013
24
3. Computer Instructions
Basic Computer Instruction Format Memory-reference instruction. Register-reference instruction. Input-output instruction.
10/30/2013
25
10/30/2013
26
10/30/2013
32
Efficiency.
e.g. multiplication, XOR must be programmed in the basic computer (Ch6).
Commercial computers
Ch8.
10/30/2013 33
10/30/2013
37
10/30/2013
39
10/30/2013
40
10/30/2013
41
10/30/2013
42
10/30/2013
44
10/30/2013
45
5. Instruction Cycle
A program (sequence of instructions) residing in memory is executed by going through a cycle for each instruction, which in turn, is divided into a sequence of subcycles or phases.
10/30/2013
47
Upon completing step 4, control goes back to step 1 and so on until a HALT instruction is encountered.
10/30/2013 48
10/30/2013
51
10/30/2013
52
10/30/2013
53
10/30/2013
54
the
56
10/30/2013
57
10/30/2013
58
Selected Problems
To be selected!
10/30/2013
59
Next Lecture
Continuation of Basic Computer Organization and Design.
Assignment
- Reading: Chapter 5: sections 1-5.
10/30/2013
60
References
- Digital Design, 4th ed, M. Morris Mano, Prentice Hall, 2006. -http://microcom.kut.ac.kr/ ch05 - God bless Google and Wiki!
10/30/2013
61