Computer Instruction 1
Computer Instruction 1
15 14 12 11 0
I Op code Address
Eg: AND,ADD,LPD,STA,BUN,BSA,etc.
15 12 11 0
0111 Register operation
(opcode=111,I=0)
Eg : CLA,CMA,CLE,INC,HLT etc.
CLA -clear AC
CLE - clear E.
CMA - complement AC.
CME - complement E.
CIR - circulate right AC and E.
INC -Increment AC.
HLT - Halt computer.
>The remaining 12-bits are used to specify the type of I/p and
o/p operation (or) test performed.
15 12 11 0
(op code=111,I=1)
Eg: INP,OUT,SKI,SKO,ION,IOF.
Instruction cycle:
It is the time required by the CPU to execute one signal
instruction.
Sc 0
T0
MR PC
T1
IR M[AR],PC PC+1
T2
AR IR[0-1] , I IR(15)
(Indirect) 1 (Direct) 0
(I/O)=1 0 (register) T3
Nothing
T3
AR m[AR]
T3 T3
Execute register -
reference instruction
Execute memory -
Execute reference instruction
instruction
I/o instruction SC 0
Sc 0 Sc 0
- Initially,the program counter (PC) is loaded with the address of
the 1st instruction in the program.
- The sequence counter (SC) is cleared to 0, providing a decoded
timing signal To.
- control then inspect the value of the 1st bit of the instruction:
0 0
1 0
1 1
iv. If D7 I T3 - Input -Output instruction.