Chapter 1 (Assembly)
Chapter 1 (Assembly)
Address bus
3
Basic component of micro-computer
4
2. Memory
• physical devices used to store data or programs (sequences of
instructions) on a temporary or permanent basis for use in an
electronic digital computer.
• Computer main memory comes in two principal varieties: random-
access memory (RAM) and read-only memory (ROM).
• RAM can be read and written to anytime the CPU commands it, but
ROM is pre-loaded with data and software that never changes, so the
CPU can only read from it.
• ROM is typically used to store the computer's initial start-up
instructions.
• In general, the contents of RAM are erased when the power to the
computer is turned off, but ROM retains its data indefinitely.
• In a PC, the ROM contains a specialized program called the BIOS that
orchestrates loading the computer's operating system from the hard
disk drive into RAM whenever the computer is turned on or reset.
5
3. I/O Unit
6
Evolution of Microprocessor
7
DATA SIZE
Nibble 4 bit
Byte 8 bit
Word 16 bit
8
Fetching & Execution Cycles
• Fetching Cycles
• The fetch cycle takes the instruction required from
memory, stores it in the instruction register, and
• moves the program counter on one so that it points to
the next instruction.
• Execute cycle
• The actual actions which occur during the execute cycle of
an instruction.
• depend on both the instruction itself and the addressing
mode specified to be used to access the data that may be
required.
9
Fetching an instruction
• Step 1
Instruction pointer (program counter) hold the address
of the next instruction to be fetch.
10
FETCHING AN INSTRUCTION (cont.)
• Step 2
11
FETCHING AN INSTRUCTION (cont.)
• Step 3
12
FETCHING AN INSTRUCTION (cont.)
• Step 4
13
FETCHING AN INSTRUCTION (cont.)
• Step 5
14
FETCHING AN INSTRUCTION (cont.)
• Step 6
15
Internal structure and basic
operation of microprocessor
Address bus
ALU Register
Section
Data bus
17
Internal structure of ALU
18
Control unit
19
Internal structure of control unit
20
Register sets
• The register section/array consists completely of circuitry used to
temporarily store data or program codes until they are sent to the
ALU or to the control section or to memory.
• The number of registers are different for any particular CPU and
the more register a CPU have will result in easier programming
tasks.
21
accumulator
22
Condition code register (CCR)
• an 8 bit register used to store the status of CPU, such as carry, zero,
overflow and half carry.
23
Program counter (PC)
25
Data bus
• The data bus is 'bi-directional'
• data or instruction codes from memory or
input/output.are transferred into the microprocessor
• the result of an operation or computation is sent out
from the microprocessor to the memory or
input/output.
• Depending on the particular microprocessor, the
data bus can handle 8 bit or 16 bit data.
26
Address bus
27
Control bus
28
Microprocessor clock
29
Examples of micro processor
• Intel 8085
• Intel 8086
• Intel 8088
30
8085
• The Intel 8085 is an 8-bit microprocessor
introduced by Intel in 1977. An Intel 8085AH processor.
3,5 and
Max. CPU clock rate
6 MHz
31
8086 & 8088
The 8086 is a 16-bit microprocessor chip
designed by Intel, which gave rise to the
x86 architecture; development work on
the 8086 design started in the spring of
1976 and the chip was introduced to the
market in the summer of 1978.
The Intel 8088, released in 1979, was a
slightly modified chip with an external 8-
bit data bus (allowing the use of cheaper
and fewer supporting logic chips and is
notable as the processor used in the
original IBM PC.
32