PC Organization - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

PC Organization

Description:

... are referred to as 8-bit registers, but remember they are ... 20-bit addresses must be formed from 16-bits of information. Interrupt Vectors. BIOS and DOS Data ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 12
Provided by: timma87
Category:
Tags: bit | organization

less

Transcript and Presenter's Notes

Title: PC Organization


1
PC Organization
  • Assembly Language Programming
  • University of Akron
  • Dr. Tim Margush

2
Intel 8086 Organization
  • Registers - storage locations found inside the
    processor for temporary storage of data
  • Data Registers (16-bit)
  • AX, BX, CX, DX
  • Address Registers (16-bit)
  • Segment registers CS, SS, DS, ES
  • Pointer registers SP, BP, IP
  • Index registers SI, DI
  • Status (Flags) register (16-bit)

3
Data Registers
  • The data registers may be used for general
    purposes, however each has special uses
  • AX Accumulator
  • BX Base
  • CX Count
  • DX Data
  • Each byte of the 4 data registers can be accessed
    independently
  • AH, AL, BH, etc.
  • These are referred to as 8-bit registers, but
    remember they are part of an existing register

4
Memory
Interrupt Vectors
BIOS and DOS Data
  • 8086 - 1 megabyte of memory (220 bytes)
  • Each byte is accessed by specifying an address
    (00000h through FFFFFh)
  • 20-bit addresses must be formed from 16-bits of
    information

DOS
Application Program Area
Video
Reserved
BIOS
5
Segment Registers
  • 20-bit addresses are obtained by combining two
    16-bit registers, segmentoffset
  • Address segment16offset
  • Example CS 010C IP 14D2
  • Address 010C1014D2 010C014D2 Address
    02592
  • Each segment is 64K, segments can start at any
    paragraph boundary

6
Program Segments
  • During program execution, the segment registers
    are only changed if memory not currently
    accessible in an active segment must be accessed
  • Program bytes are arranged into distinct segments
    for convenience
  • CS -gt segment containing machine instructions
  • SS -gt segment containing storage for the stack
  • DS -gt segment containing data values and storage
  • ES -gt segment for additional data or special
    memory operations
  • Programmers must be aware of this organization

7
Instruction and Stack Pointers
  • IP contains the address of the next instruction
    to be executed
  • IP specifies an offset into the CS segment
  • IP is not the operand of any instruction
  • SP points to the top item on the stack
  • SP is an offset into the SS segment
  • SP can be used as an operand in some instructions

8
BP and Index Registers
  • BP is a Base Pointer
  • Specifies an offset into any segment, but most
    commonly the Stack segment
  • SI and DI are called Index registers
  • They normally specify an offset into the Data
    segment, although they can be used as offsets
    into any segment
  • Sometimes they hold a number to be added to the
    address of an array (index)

9
Flags
  • Individual bits are used to store the status of
    the microprocessor
  • Bits are set or cleared as the result of many
    operations
  • Bits may be affected indirectly (by the execution
    of an instruction) or directly by an instruction
    designed to access the status word

10
Operating System and Hardware Features
  • MS-DOS
  • Command.com
  • BIOS
  • Interrupt Vectors
  • Video Memory
  • IO Ports

11
System Startup
  • Reset state
  • CS FFFFh
  • IP 0000h
  • Executes an instruction in ROM that transfers to
    a BIOS routine
  • System memory check
  • Initialize interrupt vectors and BIOS data
  • Load operating system from disk
  • boot sector
  • DOS
  • Load and execute command.com
Write a Comment
User Comments (0)
About PowerShow.com