Microprocessor Reviewer
Microprocessor Reviewer
• Key Components of a Computer System: • Binary: Used in computers (base-2), only 0 and 1.
o Central Processing Unit (CPU): Acts as the brain, • Hexadecimal (Hex): Convenient representation of binary, using
coordinating all activities. base-16.
o Memory: Stores program instructions and data. o Conversion techniques between binary, decimal,
and hex are illustrated in the document.
o Input/Output (I/O) Devices: Allow for input and
output of information. 6. Arithmetic Operations in Binary and Hexadecimal
o The integrated circuit (IC) chip containing the CPU, o Binary addition and subtraction.
acting as the brain of the computer.
• Hexadecimal Arithmetic:
o Microcomputers are smaller computers using
microprocessors, often as personal computers. o Hexadecimal addition and subtraction methods
with examples.
• Bus System:
7. ASCII Code
o Address Bus: Identifies the memory location or I/O
device for communication. • Represents alphanumeric characters in hexadecimal format
(e.g., ‘A’ as 41H in hex).
o Data Bus: Transfers data between CPU, memory,
and I/O. 8. Important Terminology
o Control Bus: Manages whether the address is for • Bit: Smallest data unit.
memory or an I/O device.
• Byte (8 bits), Word (16 bits), Double-word (32 bits), Quad-word
• Memory Types: (64 bits): Defined data lengths.
• Instruction Pointer: Holds the address of the next instruction to o Key differences included a 16-bit data bus, a 20-bit
execute. address bus (1 megabyte of memory), and pipelining
capabilities.
• Instruction Decoder: Interprets the instructions fetched into
the CPU. • Transition from 8086 to 8088:
3. History and Evolution of Computers o The 8088 was similar to the 8086 internally but used
an 8-bit external data bus to reduce costs.
• 1946: First-generation computer, ENIAC, based on vacuum
tubes. o IBM chose the 8088 for its PC, making it highly
successful, especially as an open system with
• 1958-1981: Transition from transistorized computers to Microsoft.
microprocessors like Intel’s 8086 and IBM's PC.
• Other Microprocessors (80286, 80386, and 80486):
• Modern Microprocessors: Intel Pentium series and beyond,
with millions of transistors and increased data/address bus o 80286 (1982): Introduced a 24-bit address bus,
capacities. virtual memory, and protected mode.
4. Evolution of Intel 80x86 Family o 80386 (1985): Featured a 32-bit data bus and
supported up to 4 GB of physical memory.
• Progression from Intel 4004 in 1971 to Intel Itanium in 2001,
each generation increasing in transistor count, clock rate, and
o 80486 (1989): Included a built-in math co-processor
and cache memory for faster processing.
bus width.
2. Architecture of the 8086 Microprocessor
• Pipelining: 1. Introduction to Assembly Language Programming
o Example: If AX = 35F3H, storing it at DS:1500 results o Algorithm: Load data segment, perform
in DS:1500 = F3 and DS:1501 = 35. subtraction, store result.
1. Editor: A tool to write assembly language statements and save 4. Division (16-bit):
them in a source file (.ASM).
o Objective: Divide a 32-bit number by a 16-bit
2. Assembler: Converts assembly mnemonics into binary code, number.
generating an object file (.OBJ) and an assembler list file (.LST).
o Algorithm: Load values, divide, store quotient and
3. Linker: Combines multiple object files into an executable file remainder.
(.EXE).
1. Introduction to MASM and 8086 Assembly Programming
4. Debugger: Helps load, execute, and troubleshoot code,
allowing inspection and modification of registers and memory. Key Components:
MASM (Microsoft Macro Assembler): • Editor: A program to create assembly language code files
(.ASM).
• MASM integrates an editor, assembler, linker, and debugger to
facilitate assembly language programming. • Assembler: Converts assembly mnemonics to binary codes,
creating object files (.OBJ) and list files (.LST).
Execution Procedure
• Linker: Combines object files into executable files (.EXE).
1. Open Command Prompt.
2. Check MASM Installation: Type masm in the command • Debugger: Helps in testing and troubleshooting code, allowing
prompt. you to inspect and modify register and memory contents
during program execution.
3. Directory Setup: Navigate to your folder in the command
prompt. 2. Basic Execution Procedure in MASM
4. Program Writing: Use edit programname.asm to write and 1. Open Command Prompt: Start by navigating to the DOS
save assembly code. command prompt.
5. Assemble, Link, Execute: 2. Check MASM Installation: Type masm to verify installation.
Objective:
1. Addition:
2. Subtraction:
3. Multiplication:
4. Division:
Aim:
• Algorithm:
• Sample Code:
asm
Copy code
• Algorithm: