0% found this document useful (0 votes)
17 views5 pages

8086 Programming Model

The document outlines the programming model of the 8086 microprocessor, detailing its internal architecture and various types of registers, including general purpose, pointer, index, segment, instruction pointer, and flag registers. It describes the structure of an assembly language program, which consists of code, data, and stack segments, along with the steps for defining these segments and writing instructions. Additionally, it lists common assembler directives used for organizing programs, such as ASSUME, SEGMENT, DB, and PROC, emphasizing their role in guiding the assembler and structuring the code.

Uploaded by

Nil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views5 pages

8086 Programming Model

The document outlines the programming model of the 8086 microprocessor, detailing its internal architecture and various types of registers, including general purpose, pointer, index, segment, instruction pointer, and flag registers. It describes the structure of an assembly language program, which consists of code, data, and stack segments, along with the steps for defining these segments and writing instructions. Additionally, it lists common assembler directives used for organizing programs, such as ASSUME, SEGMENT, DB, and PROC, emphasizing their role in guiding the assembler and structuring the code.

Uploaded by

Nil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Programming Model of 8086

Assembly Language
Program and Assembler Directives
Programming Model of 8086
• - Represents internal architecture visible to
programmer
• - Registers:
• • General Purpose: AX, BX, CX, DX
• • Pointer & Index: SP, BP, SI, DI
• • Segment Registers: CS, DS, SS, ES
• • Instruction Pointer: IP
• • Flag Register: Status & Control flags
• - Registers classified as: Data, Address, Control
8086 Assembly Language Program
• - Program consists of:
• • Code segment – instructions
• • Data segment – variables, constants
• • Stack segment – temporary data

• - Steps:
• 1. Define segments (data, code, stack)
• 2. Initialize data and registers
• 3. Write instructions (logic)
Assembler Directives (Part 1)
• - Directives: Instructions for assembler (not
executed)
• - Common directives:
• • ASSUME → Associates segment registers
• • SEGMENT / ENDS → Defines beginning &
end of a segment
• • DB → Define Byte data
• • DW → Define Word data
• • EQU → Assigns a constant value
Assembler Directives (Part 2)
• - More directives:
• • ORG → Sets starting address
• • END → Marks end of program
• • PROC / ENDP → Defines procedures
• • PUBLIC / EXTRN → For modular
programming

• - Importance:
• • Organizes program

You might also like