


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Summary about Basic Computer organization and design, THE BASIC COMPUTER, INSTRUCTIONS, ADDRESSING MODES, COMMON BUS SYSTEM, BASIC COMPUTER INSTRUCTIONS.
Typology: Study notes
1 / 42
This page cannot be seen from the preview
Don't miss anything!



































12
0
4095
15 0
INSTRUCTION FORMAT
Instruction codes
Opcode Address
1514 12 0
I
11
Addressing
mode
ADDRESSING MODES
▫ Immediate value
▫ Direct address:
▫ Indirect address:
Instruction codes
0
22
Operand 457
1
35
1350 300
Operand
1350
Direct addressing Indirect addressing
COMMON BUS SYSTEM
Registers
COMMON BUS SYSTEM
Registers
S
S
S
Bus
Memory unit
4096 x 16
LD INR CLR
Address
Write Read
AR
LD INR CLR
PC
LD INR CLR
DR
LD INR CLR
AC ALU
E
INPR
IR
LD
LD INR CLR
TR
OUTR
LD
Clock
16-bit common bus
7 1 2 3 4 5 6
BASIC COMPUTER INSTRUCTIONS
Instructions
Opcode Address
Memory-Reference Instructions (OP-code = 000 ~ 110)
Register-Reference Instructions (OP-code = 111, I = 0)
Input-Output Instructions (OP-code =111, I = 1)
0 1 1 1 Register operation
I/O operation 1 1 1 1
BASIC COMPUTER INSTRUCTIONS
Hex Code
Symbol I = 0 I = 1 Description
AND 0xxx 8xxx AND memory word to AC
ADD 1xxx 9xxx Add memory word to AC
LDA 2xxx Axxx Load AC from memory
STA 3xxx Bxxx Store content of AC into memory
BUN 4xxx Cxxx Branch unconditionally
BSA 5xxx Dxxx Branch and save return address
ISZ 6xxx Exxx Increment and skip if zero
CLA 7800 Clear AC
CLE 7400 Clear E
CMA 7200 Complement AC
CME 7100 Complement E
CIR 7080 Circulate right AC and E
CIL 7040 Circulate left AC and E
INC 7020 Increment AC
SPA 7010 Skip next instr. if AC is positive
SNA 7008 Skip next instr. if AC is negative
SZA 7004 Skip next instr. if AC is zero
SZE 7002 Skip next instr. if E is zero
HLT 7001 Halt computer
INP F800 Input character to AC
OUT F400 Output character from AC
SKI F200 Skip on input flag
SKO F100 Skip on output flag
ION F080 Interrupt on
IOF F040 Interrupt off
Instructions
CONTROL UNIT
Instruction codes
TIMING AND CONTROL
Timing and control
7 6 5 4 3 2 1 0
15 14.... 2 1 0
Combinational
Control
logic
recap
opcode+(address or operand)-> sequence of
Microoperation-> executed by control unit
instruction decoder – to enable corresponding
microprogrammed control
Sequence counter - to generate timing signal
DETERMINE THE TYPE OF INSTRUCTION
= 0 (direct)
D' 7 I'T 3 : Nothing
D 7 I'T 3 : Execute a register-reference instr.
D 7 IT 3 : Execute an input-output instr.
Instrction Cycle
Start
SC
AR PC
T
IR M[AR], PC PC + 1
T
AR IR(0-11), I IR(15)
Decode Opcode in IR(12-14),
T
D
(Register or I/O) = 1 = 0 (Memory-reference)
I I
Execute
register-reference
instruction
SC 0
Execute
input-output
instruction
SC 0
AR M[AR] Nothing
= 0 (register) (I/O) = 1 (indirect) = 1
T3 T3 T3 T
Execute
memory-reference
instruction
SC 0
T
REGISTER REFERENCE INSTRUCTIONS
r = D
7
IT
3
=> Register Reference Instruction
B
i
= IR(i) , i=0,1,2,...,
7
= 1, I = 0
0
~ b
11
of IR
3
Instruction Cycle
Register Reference Instructions are identified when
11
10
9
8
7
6
5
4
3
2
1
0