Comp 321 Lecture Slide Chapter 4 (Basic Computer Organization and Design)
Comp 321 Lecture Slide Chapter 4 (Basic Computer Organization and Design)
1
Instruction set architecture
2
Cont….
3
Instruction Codes
Instruction codes together with data are stored in
memory(=Stored Program Concept)
The computer reads each instruction from memory and places it
4
Cont….
5
Cont….
6
Cont….
7
Computer Instructions
The basic computer has three instruction code formats. The Operation code (opcode) part of the
instruction contains 3 bits and remaining 13 bits depends upon the operation code encountered.
There are three types of formats:
1. Memory Reference Instruction
It uses 12 bits to specify the address and 1 bit to specify the addressing mode (I). I is equal to 0 for
direct address and 1 for indirect address.
e.g. ADD,LDA,STA…
2. Register Reference Instruction
These instructions are recognized by the opcode 111 with a 0 in the left most bit of instruction. The
other 12 bits specify the operation to be executed.
e.g. CLA(7800) , INC (7020) ,HLT (7001)…..
3. Input-Output Instruction
These instructions are recognized by the operation code 111 with a 1 in the left most bit of
instruction. The remaining 12 bits are used to specify the input-output operation.
8
e.g. INP (F800), OUT (F400)…….
Cont….
12
A Simple Program
13
Cont….
14
Cont….
15
Cont….
16
Interrupt
19
Cont….
21
Fig: Input/output configuration.
A Discussion on Assemblers
22
Cont….
23
Cont….
24
Cont….
25
Cont….
26
Why Learn Assembly Language?
28