Microprocessor 01
Microprocessor 01
CSE - 357
Course Teacher: Prof. Dr. Israt Jahan
Computer Basics
⚫ Computer is an electronic machine that stores,
retrieves and processes data.
⚫ Performs computations and makes logical decisions
⚫ MOV AX,A
⚫ ADD AX,4
⚫ STORE Z
Automatically translating assembly language to
machine language
High-level languages
⚫ Closer to how people think about their problems
⚫ General purpose
⚫ Example:
Z = A+ 4
High-level languages
⚫ Fortran
⚫ Basic
⚫ Visual Basic
⚫C
⚫ C++
⚫ Java
Advantages of Assembly languages
⚫ Efficient
⚫ It is so close to machine language.
CPU
Register RAM | ROM
s
progra dat
m a
storag storag
e e
Contro
l
unit outpu inpu
t unit t
unit
Registers
⚫ Information inside the microprocessor is stored in registers.
⚫ Even though the processor can operate on data stored in
memory, the same instruction is faster if the data are stored in
registers.
Types
• Registers are classified into three
categories according to the functions they
perform. Each register is 16 bit.
– Data registers
– Hold data for an operation
– Address registers
– Hold the address of an instruction and data
– Status registers
– Keep the current status of the processor
Data Registers
⚫ 8086 has four data registers for general data manipulation. They are:
⚫ AX (Accumulator Register)
⚫ BX (Base Register)
⚫ CX ( Count Register )
⚫ DX (Data Register)
⚫ The high and low bytes of the data registers can be accessed
separately. The high byte of AX is called AH and the low byte is AL.
Data Registers
• AX (Accumulator Register….AH+AL)
– Use in arithmetic, logic and data transfer
instructions because its use generates the shortest
machine code.
– In multiplication and division operations, one of
the numbers involved must be in AX or AL.
• BX (Base Register…..BH+BL)
– Serves as an address register
Data Registers
⚫ CX (Count Register……CH+CL)
⚫ Use in program loop constructions….serves as loop counter
•CPU
•Memory
•Input/Output (I/O) units.
Translates instructions
Motorola’s MC 68020/68030/68040
Intel’s 80386/804486
Intel Pentium processors.
•These processors are fabricated using Low-power
version of the HMOS technology called the
HCMOS.
Time
30 40 20 30 40 20 30 40 20 30 40 20
⚫ Sequential laundry takes 6 hours
A for 4 loads
⚫ If they learned pipelining, how
long would laundry take?
B
D
Traditional Pipeline Concept
6 PM 7 8 9 10 11 Midnight
Time
T
a 30 40 40 40 40 20
s
k A
⚫ Pipelined laundry takes 3.5
hours for 4 loads
O B
r
d C
e
r D
What is Pipelining
⚫ A technique used in advanced microprocessors where the
microprocessor begins executing a second instruction before
the first has been completed.