Professional Documents
Culture Documents
Revision
Introduction
• Microprocessor is a digital device on a chip which
can fetch instructions from a memory, decode and
execute them i.e. performs certain arithmetic and
logical operations, accept data from input device,
and send results to output devices.
• Therefore, a microprocessor interfaced with
memory and Input/ Output devices forms a
Microcomputer.
Von-Neumann Architecture
Control Unit
• Data bus is bidirectional, that is, data flow occurs both to and
from CPU and peripherals.
• A microprocessor is characterized by the width of its data
bus.
• The size of the internal data bus determines the largest
number that can be processed by a microprocessor, for
instance, having a 16-bit internal data bus is 65536 (64K).
• A microprocessor is specified by its ‘Word Size’, e.g. 4-bit, 8-
bit, 16-bit etc.
• By the term ‘word size” means the number of bits of data
that is processed by the microprocessor as a unit.
• It also specifies the width of the data bus.
Control Bus
• The execution unit of the 8086 tells the BIU where to fetch
instructions or data from, decodes instructions, and
executes instructions.
• The EU has a 16-bit arithmetic logic unit (ALU) which can
add, subtract, AND, OR, XOR, increment, decrement,
complement or shift binary numbers.
• The EU contains control circuitry, which directs internal
operations.
• The main functions of EU are:
o Decoding of Instructions
o Execution of instructions
Steps:
• Now that you have seen all the program segments, we can construct the
general form of a .SMALL model program.
.MODEL SMALL
.STACK 100H
.DATA
;data definitions go here
.CODE
MAIN PROC
;instructions go here
MAIN ENDP
; other procedures go here
END MAIN
INT 21h