Lecture 10 Processor Reg Bus n Basic Computer Instructions
Lecture 10 Processor Reg Bus n Basic Computer Instructions
Processor Register
A processor has many registers to hold instructions, addresses, data, etc
The processor has a register, the Program Counter (PC) that holds the
memory address of the next instruction to be executed
Since the memory in the Basic Computer only has 4096 locations,
the PC only needs 12 bits
In a direct or indirect addressing, the processor needs to keep track of
what locations in memory it is addressing: The Address Register (AR) is
used for this
The AR is a 12 bit register in the Basic Computer
When an operand is found, using either direct or indirect addressing, it
is placed in the Data Register (DR). The processor then uses this value as
data for its operation
The Basic Computer has a single general purpose register – the
Accumulator (AC)
CSE 211
Basic Computer Organisation and Design 2
Processor Register
The significance of a general purpose register is that it can be referred to in
instructions
e.g. load AC with the contents of a specific memory location; store the contents of AC
into a specified memory location
Often a processor will need a scratch register to store intermediate results
or other temporary data; in the Basic Computer this is the Temporary
Register (TR)
The Basic Computer uses a very simple model of input/output (I/O)
operations
Input devices are considered to send 8 bits of character data to the processor
The processor can send 8 bits of character data to output devices
The Input Register (INPR) holds an 8 bit character gotten from an input
device
The Output Register (OUTR) holds an 8 bit character to be send to an
output device
CSE 211
Basic Computer Organization and Design 3
Processor Register
Registers in the Basic Computer
11 0
PC
Memory
11 0
4096 x 16
AR
15 0
IR CPU
15 0 15 0
TR DR
7 0 7 0 15 0
OUTR INPR AC
List of BC Registers
DR 16 Data Register Holds memory operand
AR 12 Address Register Holds address for memory
AC 16 Accumulator Processor register
IR 16 Instruction Register Holds instruction code
PC 12 Program Counter Holds address of instruction
TR 16 Temporary Register Holds temporary data
INPR 8 Input Register Holds input character
OUTR 8 Output Register Holds output character
CSE 211
In basic computer, which of the following
register is called as a General Purpose Register ?
a) PC
b) IR
c) TR
d) AC
Basic Computer Organization and Design 5
CSE 211
Basic Computer Organization and Design 6
LD INR CLR
PC 2
LD INR CLR
DR 3
LD INR CLR
E
ALU AC 4
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
CSE 211
Basic Computer Organization and Design
Either one of the registers will have its load signal activated, or the
memory will have its write signal activated
Will determine where the data from the bus gets loaded
Memory places its 16 bit output on bus when read input is
activated and S2S1S0=111
CSE 211
Basic Computer Organization and Design
When the 8-bit register OUTR is loaded from the bus, the data
comes from the low order 8 bits on the bus
CSE 211
• What is the size of memory in basic
computer?
a) 4096 x 12
b) 4096 x 12
c) 4095 x 16
d) 4096 x 16
CSE211
Computer Organization and Design
Computer Instructions
Timing and Control
Instruction Cycles
Memory Reference Instructions
Input Output and Interrupts
Complete Computer Description
11
Basic Computer Organization and Design 12
Overview
Instruction Codes
Computer Registers
Computer Instructions
Instruction Cycle
CSE 211
Basic Computer Organization and Design 13
CSE 211
• In basic computer, which of the following flip
flops is used to hold the addressing mode
information?
a) E
b) I
c) A
d) T