COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING

Slides:



Advertisements
Similar presentations
Defining and processing tables
Advertisements

Digital Interfacing.
EDUSAT SESSION FOR ADVANCED MICROPROCESSOR (EC54) Date: Session VII Topic: Programming Examples Faculty: Anita Kanavalli MSRIT.
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.
ACOE2511 Assembly Language Arithmetic and Logic Instructions.
第 4 章习题参考答案: 2 、取 SIZE 属性 A1——2 字节( 4 ) A2——3 字节( 6 ) A3——20 字节( 40 ) A4——4 字节( 60 ) 4 、 L=6 5 、 PLENTH=22, 可用于确定循环次数。 7 、( AX ) =1 ( BX ) =20 ( CX ) =1.
Assembly Language for Intel-Based Computers Chapter 5: Procedures Kip R. Irvine.
Flow Control Instructions
Microcomputer & Interfacing Lecture 3
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#8) By Dr. Syed Noman.
Factorial of a number data segment x1 db 4 fact dw ? data ends
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#7)
BIOS1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
COSC 456 Lesson 8 Cool Codes ADD AL,SIAL AL + SI ADD AL,[SI]AL AL + [SI] INC BXBX BX + 1 INC [BX]Ambiguity error INC BYTE PTR [BX][BX] [BX] + 1 INC WORD.
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.
BIOS and DOS Programming in DOS INT 10 and 21H. Interrupts There are some extremely useful subroutines within BIOS or DOS that are available to the user.
String-Introduction String is a series of bytes or a series of words in sequential memory locations. Index registers - SI (Data segment) - DI (Extra segment)
Overview of Assembly Language Chapter 4 S. Dandamudi.
The Stack and Introduction to Procedures Dr. Konstantinos Tatas and Dr. Haris Haralambous.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#5) By Dr. Syed Noman.
5. Assembly Language. Basics of AL Program data Pseudo-ops Array Program structures Data, stack, code segments.
Writing and using procedures
Click to add Title Comunicación y Gerencia Click To add Subtitle Click to add Text Fundamentals of Assembly Language.
Assembly Language. Symbol Table Variables.DATA var DW 0 sum DD 0 array TIMES 10 DW 0 message DB ’ Welcome ’,0 char1 DB ? Symbol Table Name Offset var.
LEA instruction The LEA instruction can be used to get the offset address of a variable Example ORG 100h MOV AL, VAR1 ; check value of VAR1 by moving it.
Review of Assembly language. Recalling main concepts.
Control Structure vs. Assembly Language NASM. If-then-else If conditional then then_actions jump to endif else else_actions endif.
File Operations. FILE PROCESSING For the purposes of the following discussion, reading means copying all or part of an existing file into memory Writing.
COMPUTER SCIENCE & TECHNOLOGY DEGREE PROGRAMME FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UVA WELLASSA 1 Assembly Language Programming.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#7) By Dr. Syed Noman.
Assembly language programming
Introduction to assembly programmıng language
Format of Assembly language
Presentation on Real Mode Memory Addressing
Data Transfers, Addressing, and Arithmetic
8254 – SOFTWARE PROGRAMMABLE TIMER
COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING
Lecture 4 Control Flow Structures (LOOPS)
INSTRUCTION SET.
Microprocessor and Assembly Language
Assembly Language Programming Part 2
Microprocessor and Assembly Language
Microprocessor & Interfacing
(The Stack and Procedures)
اصول اساسی برنامه نویسی به زبان اسمبلی
Microprocessor and Assembly Language
Defining Types of data expression Dn [name] expression Dn [name]
Symbolic Instruction and Addressing
ارايه دهنده : حسن عسكرزاده
اصول اساسی برنامه نویسی به زبان اسمبلی
Microprocessor Lab CSL1543 0:0:2
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
(Array and Addressing Modes)
(The Stack and Procedures)
Microprocessor Lab CSL1543 0:0:2
Assembly Language Programming
Symbolic Instruction and Addressing
(Array and Addressing Modes)
A brief history •First microprocessor at Intel in
Unit:08 Software Interrupts
High-level language structures
UNIT-II Assembly Language Programs Involving Logical
Chapter 6 –Symbolic Instruction and Addressing
CNET 315 Microprocessor & Assembly Language
(The Stack and Procedures)
By Nasser Halasa Assembly Language.
CS-401 Computer Architecture and Assembly Language Programming
Chapter 8: Instruction Set 8086 CPU Architecture
(Array and Addressing Modes)
Presentation transcript:

COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING Describe the architecture and organization of microprocessor along with instruction set format. C404.2 Describe modes and functional block diagram of 8086 along with pins and their functions C404.3 List and describe memory and addressing modes C404.4 List, describe and use different types of instructions, directives and interrupts C404.5 Develop assembly language programs using various programming tools. Visit for more Learning Resources

8086 ASSEMBLY LANGUAGE PROGRAMMING CHAPTER 5 8086 ASSEMBLY LANGUAGE PROGRAMMING

Program to display the entered string on screen using 8086                         DATA    SEGMENT          ORG     2000H           INPUT       DB      “ENTER THE STRING”,0DH,0AH,“$”         OUTPUT          DB      “THE ENTERED STRING IS:” ,0DH,0AH,“$”        S_LENTH        DB      0         BUFFER          DB      80 DUP(0)       DATA  ENDS       CODE    SEGMENT ASSUME CS:CODE,DS:DATA               START: MOV AX,DATA                         MOV DS,AX                         XOR CL,CL                         LEA DX,INPUT                         MOV AH,09H                         INT 21H                         LEA BX,BUFFER            

REPEAT:     MOV AH,01H                         INT 21H                         CMP AL,0DH                         JZ EXIT                         INC CL                         MOV [BX],AL                         INC BX                         JMP REPEAT                EXIT:    MOV S_LENTH,CL                         LEA BX,BUFFER                         ADD BL,CL                         MOV AL,’$’                         MOV [BX],AL                         LEA DX,OUTPUT                         MOV AH,09H                         INT 21H                         LEA DX,BUFFER                         MOV AH,09H                         INT 21H                         MOV AH,4CH                         INT 21H                         CODE    ENDS                         END START

finding the given string as a palindrome or not. using 8086               ASSUME CS:CODE,DS:DATA                     DATA   SEGMENT                            ORG   2000H                  STRING    DB    “MPMC LAB$”               S_LENTH      EQU    $-STRING-1                     MSG1   DB    “THE GIVEN STRING IS A PALINDROME$”                     MSG2   DB    “THE GIVEN STRING IS NOT A PALINDROME$”                     DATA  ENDS                     CODE   SEGMENT                    START: MOV AX,DATA                            MOV DS,AX                            LEA DX,MSG2                            MOV CX,S_LENTH                            LEA SI,STRING                            MOV DI,SI                            ADD DI,S_LENTH-1                            SHR CX,1                    BACK:   MOV AL,[SI]                            CMP AL,[DI]                            JNZ NEXT                            INC SI                            DEC DI                            LOOP BACK                            LEA DX,MSG1                     NEXT: MOV AH,09H                            INT 21H                            MOV AH,4CH                            INT 21H                            CODE  ENDS                            END START

Program to sort numbers in ascending order using 8086 (unsigned numbers) assume cs:code,ds:data data segment org 2000h series db 81h,82h,93h,95h,10h,56h,33h,99h,13h,44h count dw 10d data ends code segment start:mov ax,data mov ds,ax mov dx,count dec dx go:mov cx,dx lea si,series nxt_byte:mov al,[si] cmp al,[si+1] jb next xchg al,[si+1] xchg al,[si] next:inc si loop nxt_byte dec dx jnz go mov ah,4ch int 21h code ends end start

Division of two numbers using 8086 in assembly language assume cs:code,ds:data data segment org 2000h num1 dw 8345h num2 dw 2346h rem dw 2d dup(0h) quo dw 2d dup(0h) data ends code segment start:mov ax,data mov ds,ax mov ax,num1 idiv num2 mov quo,ax mov rem,dx mov ah,4ch int 21h code ends end start For more detail contact us