CS-401 Computer Architecture & Assembly Language Programming

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Register In computer architecture, a processor register is a small amount of storage available on the CPU whose contents can be accessed more quickly than.
Registers of the 8086/ /2002 JNM.
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Introduction to 8086 Microprocessor
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
Slide 1 of 53 Ver. 1.0 Programming in C ASSEMBLY LANGUAGE LECTURE BASIC INFORMATION By SHERY KHAN 10:00 to 11:30.
Princess Sumaya University
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
ICS312 Set 3 Pentium Registers. Intel 8086 Family of Microprocessors All of the Intel chips from the 8086 to the latest pentium, have similar architectures.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
An Introduction to 8086 Microprocessor.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
Types of Registers (8086 Microprocessor Based)
1 Assembler A short Overview. 2 Content Language Levels High Level  micro code Machinecode language Assembler languages Structure Commands.
1 ICS 51 Introductory Computer Organization Fall 2009.
UHD:CS2401: A. Berrached1 The Intel x86 Hardware Organization.
(-133)*33+44* *33+44*14 Input device memory calculator Output device controller Control bus data bus memory.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
Intel 8086 (8088) Microprocessor Structure
University of Tehran 1 Microprocessor System Design Omid Fatemi Machine Language Programming
X86 Assembly Language We will be using the nasm assembler (other assemblers: MASM, as, gas)
6-4 CPU-Registers, effective address General registers vs Segment registers Computer Studies (AL)
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Internal Programming Architecture or Model
Preliminary to Assembly Language Programming CE 140 A1/A2 28 June 2003.
1 x86 Programming Model Microprocessor Computer Architectures Lab Components of any Computer System Control – logic that controls fetching/execution of.
Intel 8086 MICROPROCESSOR ARCHITECTURE
BITS Pilani Pilani Campus Pawan Sharma Lecture / ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
An Introduction to 8086 Microprocessor.
Introduction to 8086 Microprocessor
8086 MICROPROCESSOR ARCHITECTURE & SEGMENTATION
8086 Microprocessor.
Assembly IA-32.
University of Gujrat Department of Computer Science
Intel 8088 (8086) Microprocessor Structure
1st micro 1971 calculator 2300 transistors 4-bit microprocessor
Basic of Computer Organization
CS-401 Assembly Language Programming
Symbolic Instruction and Addressing
Introduction to Assembly Language
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
CS 301 Fall 2002 Computer Organization
University of Gujrat Department of Computer Science
The Microprocessor & Its Architecture
Symbolic Instruction and Addressing
Lecture 06 Programming language.
University of Gujrat Department of Computer Science
Computer Architecture CST 250
University of Gujrat Department of Computer Science
Unit-I 80386DX Architecture
Chapter 6 –Symbolic Instruction and Addressing
Intel 8086.
CS-401 Computer Architecture and Assembly Language Programming
Chapter 8: Instruction Set 8086 CPU Architecture
Part I Data Representation and 8086 Microprocessors
Presentation transcript:

CS-401 Computer Architecture & Assembly Language Programming Lecture-3 Introduction to Assembly Language

Lets revise the last lecture

Basic Computer Organization iAPX 88 Registers (16-bit)

iAPX 88 Registers (16-bit) General Purpose AX BX CX DX

iAPX 88 Registers (16-bit) General Purpose 16-bit AX AH AL 8-bit 8-bit

iAPX 88 Registers (16-bit) General Purpose 16-bit BX BH BL 8-bit 8-bit

iAPX 88 Registers (16-bit) General Purpose AX A Accumulator Register BX B Base Register CX C Counter Register DX D Destination Register

iAPX 88 Registers (16-bit) Pointer / Index / Base SI DI

iAPX 88 Registers (16-bit) Pointer / Index / Base SI SI Source Index DI DI Destination Index IP IP Instruction Pointer SP SP Stack Pointer BP BP Base Pointer

iAPX 88 Registers (16-bit) Flag Register - - - - O D I T S Z - A - P - C C = Carry S = Sign Bit P = Parity T = Trap Flag A= Auxiliary Carry I = Interrupt Flag Z= Zero Bit D = Direction Flag O = Overflow

Address of next instruction to be executed Registers Program Counter Instruction Pointer Function: Address of next instruction to be executed

Instruction Groups Data Movement Instructions Arithmetic / Logic Instructions Program Control Instructions Special Instructions

Data Movement mov ax,bx ; move data from bx to ax lda 0234 ; load 0234 into ; accumulator

Arithmetic and Logic Instructions and ax,1234 ; AND 1234 with ax add bx,0534 ; ADD 0534 to bx add bx,[1200] ; ADD data at address 1200 to bx add ax,[1234] ; ADD data from address 1234 to ax

iAPX 88 Registers (16-bit) Segment CS CS Code Segment DS DS Data Segment SS SS Stack Segment ES ES Extra Segment

iAPX 88 Registers (16-bit) General Purpose AX AH,AL BX BH,BL CX CH,CL DX DH,DL

A Simple Program Move 5 to AX mov ax,5 Move 10 to BX mov bx,10 ADD BX to AX add ax,bx Move 15 to BX mov bx,15

General Instruction Format instruction dest, src instruction dest instruction src

Assembler NASM The Netwide Assembler

Linker ALINK

Advanced Full Screen Debug Debugger AFD Advanced Full Screen Debug

EX01.ASM mov ax,5 mov bx,10 Add ax,bx Mov bx,15 Mov ax,0x4c00 Int 0x21 [ORG 0X100] mov ax,5 mov bx,10 Add ax,bx Mov bx,15 Mov ax,0x4c00 Int 0x21

EX01.LST

Word Representation 4 Byte Word Representation in Memory MSB LSB Little Endian Notation MSB LSB 0 1 2 3 Representation 2 Big Endian Notation LSB MSB 0 1 2 3