1/2002JNM1 AL 00 Immediate Addressing Mode Mov AL, 3CH AL 3C.

Slides:



Advertisements
Similar presentations
Lecture By SHERY KHAN Assembly Language Lecture By SHERY KHAN
Advertisements

Registers of the 8086/ /2002 JNM.
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
There are two types of addressing schemes:
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
ICS312 Set 6 Operands. Basic Operand Types (1) Register Operands. An operand that refers to a register. MOV AX, BX ; moves contents of register BX to.
Department of Computer Science and Software Engineering
Chapter 3 Addressing Modes
6-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 Addressing modes.
Irvine, Kip R. Assembly Language For Intel-Based Computers TYPE and SIZE Operators TYPE –returns the size, in bytes of a single element of a data label.
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
Handout 2 Digital System Engineering (EE-390)
Stack Memory H H FFFFF H FFFFE H SS 0105 SP 0008 TOS BOS BOS = FFFF = 1104F H H 1104F H.
BUS Timing BREY-P.322. Bus Timing There are three types of buses of 8086 and 8088  address, data and control– function exactly the same way as those.
Addressing modes – 1 The way in which an operand is specified is called the Address Mode.
The 8086 Assembly Programming Data Allocation & Addressing Modes
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
1 Lecture 4: Data Transfer, Addressing, and Arithmetic Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine.
Target Processor Directives , When using.386, the program can only run on 386 and above processors.
Topic – string – Ch. 11 [Marut] Ch. 4 [Brey] String Data Transfer Instructions – The Direction Flag – LODS Instructions – STOS Instructions – MOVS Instructions.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#8) By Dr. Syed Noman.
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
Addressing Modes Chapter 11 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 7: More on Addressing Modes, Structures, and Stack Constantine D. Polychronopoulos Professor, ECE.
1/2002JNM1 Positional Notation (Hex Digits). 1/2002JNM2 Problem The 8086 has a 20-bit address bus. Therefore, it can access 1,048,576 bytes of memory.
Types of Registers (8086 Microprocessor Based)
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Faculty of Engineering, Electrical Department,
ECE291 Computer Engineering II Lecture 3 Josh Potts University of Illinois at Urbana- Champaign.
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 4 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
4-Oct Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  direct mode: OK for static addresses  indirect register mode:
Click to add Title Comunicación y Gerencia Click To add Subtitle Click to add Text Fundamentals of Assembly Language.
ΠΟΛΥΤΕΧΝΙΚΗ ΣΧΟΛΗ Τμήμα Ηλεκτρολογών Μηχανικών και Τεχνολογίας Υπολογιστών Μικρουπολογιστές & Μικροσυστήματα ΙΙ Καθηγητής Σταύρος Α. Κουμπιάς Πανεπιστημίου.
ECE291 Computer Engineering II Lecture 3 Josh Potts University of Illinois at Urbana- Champaign.
In Class Program Write, assemble and test a program: –Use the DB directive to define the following list of numbers and name it array: 31h, 32h, 33h, 34h.
ECE291 Computer Engineering II Lecture 3 Dr. Zbigniew Kalbarczyk University of Illinois at Urbana- Champaign.
Microprocessors used in Personal Computers. The Memory Map of a Personal Computers Transient Program Area (TPA): Holds the operating system (interrupt.
Review of Assembly language. Recalling main concepts.
3.4 Addressing modes Specify the operand to be used. To generate an address, a segment register is used also. Immediate addressing: the operand is a number.
Data Structures Covers Chapter 5, pages 144 – 160 and Chapter 6, pages 198 – 203.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
1 Using the Assembler Chapter – 4(A). 2 Exchanging Two Variables title Exchange Two Variables (Exchange.asm).model small.stack 100h.data value1 db 0Ah.
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
Type of addressing mode
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Instruction set Architecture
Introduction to 8086 Microprocessor
16.317: Microprocessor System Design I
ADDRESSING MODES.
Microprocessor Systems Design I
Assembly IA-32.
ADDRESSING MODES.
Assembly Lang. – Intel 8086 Addressing modes – 1
Chapter 3 Addressing Modes
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Microprocessor and Assembly Language
Symbolic Instruction and Addressing
Introduction to Assembly Language
8086 Registers Module M14.2 Sections 9.2, 10.1.
Symbolic Instruction and Addressing
(Array and Addressing Modes)
Symbolic Instruction and Addressing
(Array and Addressing Modes)
CNET 315 Microprocessor & Assembly Language
Unit-I 80386DX Architecture
Chapter 6 –Symbolic Instruction and Addressing
Instruction Set Summary
(Array and Addressing Modes)
Presentation transcript:

1/2002JNM1 AL 00 Immediate Addressing Mode Mov AL, 3CH AL 3C

1/2002JNM2 Register Addressing Mode Mov AL, BL AL 00 BL4D AL4D BL4D

1/2002JNM3 Direct Addressing Mode Mov CL, [0020H] Mov CX, [0020H] Memory (data) Little Endian Format – The “little” end of the number is stored first. CL 78 CX 5678 Mov ECX, [0020H] ECX

1/2002JNM4 Register Indirect Addressing Mode Mov CL, [SI] In the 8086, only BX, BP, SI and DI may be used as memory pointers. Later processors don’t have this restriction. Mov SI, 0022H CL 34 SI 0022

1/2002JNM5 BX 0020 Base + Displacement Mov AL, [BX +2] Useful when accessing individual elements in an array. Note that the array begins with element 0, element 2 corresponds to the third location in the array. The displacement corresponds to byte offset from the base, not element number in the array. Mov BX, 0020H AL 34

1/2002JNM6 BX 0020 Base + Index + Displacement (Useful when accessing individual elements in an record) Mov BX, 0020H ;BX points to record starting address SI 000C Mov SI, 000CH ;SI points to record three (4 elements ;per record x 3 records = 000C) Mov AL, [BX+SI+1] ;AL now has the data in element 1 of ;record #3 (assumes elements are 1 byte)

1/2002JNM7 Base + Displacement –Mov AL, [BX + 4] Base + Index + Displacement –Mov AL, [BX+SI+3] Base + Index*Scale + Displacement –Mov AL,[BX+SI*4+3] Immediate –Mov AL, 4CH Register –Mov AL, BL Direct –Mov AL, [20H] Register Indirect –Mov AL, [SI] Instruction Addressing Modes

1/2002JNM8 Direct Addressing Direct-Offset Addressing Offset operator – returns the 16-bit address of the variable. Good for strings and arrays..data Bytelist db 35h, 63h, 79h Wordlist dw 1234h, 5678h.code … Moval, Bytelist; al = 35 Moval, Bytelist+1; al = 63 Movbx, Wordlist; bx = 1234 Movbx, Wordlist+2; bx = 5678

1/2002JNM9 Direct-Offset Addressing with Strings.data aString db “ASTRING”.code … Moval, aString; al = 41 Moval, aString+1; al = 53 Moval, aString+2; al = 54 Moval, aString+3; al = 52