CsitLabs
  • CSIT Labs
  • 1st Semester
    • Digital Logics
      • Lab 1
      • Lab 2
      • Lab 3
      • Lab 4
      • Lab 5
      • Lab6
    • IIT
    • Physics Lab Report Formet
  • 2nd Semester
    • Algorithms used in Discrete Structure class
    • Microprocessor
      • 8085 Microprocessor
        • Arithmetic and Logical Instruction Set
        • Branching Instruction Set
        • Data Transfer and Instruction Set
        • Multiply, Divide and Memory Block Operations
        • Rotate Instruction Set
        • Subroutine, Stack and BCD Conversion](Subroutine_Stack_BCD_Conversion
      • 8086 Microprocessor
        • Basic Arithmetic
        • Practice Programs for 8086 Microprocessor
        • String Processing
    • Object Oriented Programming using C++
      • File Access Pointers
      • Standard Exceptions in C++
    • Statistics-I
  • 3rd Semester
    • Computer Architecture
      • Practical labs
    • Computer Graphics
      • Practial
      • Simulation of Two Dimensional Transformation
      • Scan Conversion Algorithm
    • Data Structures and Algorithms
      • Array methods (Introduction)
      • Stack
      • Queue
      • Recursion
      • Linked List
      • Sorting Algorithms
      • Searching and Hashing Algorithms
      • Trees and Graphs
      • Lab practice
    • Numerical Method Labs
      • Lab practice
    • Statistics-II Labs
      • Confidence interval of mean assuming normal distribution
      • One Sample T test
      • Two Sample T test
      • Regression Analysis
      • Two Sample T test
      • Design_of_Experiment
        • CRD (Completely Randomized Design)
        • RBD (Randomized Block Design)
        • RBD (Randomized Block Design)
      • Non-parametric_test
        • Binomial Test
        • Cochran Q test
        • Kolmogorov-Smirnov one sample test
        • Run test
        • Friedman-F_test
          • Friedman F test
          • Friedman F test
        • Kruskal-Wallis-H_test
          • Kruskal Wallis H test
          • Kruskal Wallis H test
        • Mann-Whitney-U_test
          • Mann Whitney U test
          • Mann Whitney U test
        • Median_test
          • Median Test
          • Median Test
        • Wilcoxon-Matched-pair_signed_rank_test
          • Wilcoxon Matched pair signed rank test
          • Wilcoxon Matched pair signed rank test
  • 4th Semester
    • Artificial Intelligence
    • Computer Networks
      • Networking commands in CMD
    • DBMS Lab
    • Operating System
      • Linux Commands
    • Theory of Computation
      • Lab 1 (DFA)
      • Lab 2 (NFA)
  • 5th Semester
    • Cryptography
    • Design and Analysis of algorithms
    • Multimedia
      • Animation Creation with Blender
      • FL Studio - Simple Effect Creation
      • Macromedia FreeHand - Logo Creation
      • Audio Mixing
      • Adobe Photoshop - ID Card Creation
      • Video Editing with Adobe Premiere Pro
    • Simulation & Modeling
      • Lab 1: Random Number Generation
    • System Analysis and Design
    • Web Technology
      • Lab Assignment – I (HTML)
      • Lab Assignment – II (CSS)
      • Lab Assignment – III (JavaScript and XML)
      • Lab Assignment – IV (PHP)
      • Web Technology
        • php
          • Database connection using PHP and MySQL
          • Login form
          • Login form
  • 6th Semester
    • Compiler Design and Construction
    • NET Centric Computing
      • Class Codes
        • Authentication and Authorization in ASP.NET
        • C# Basics
      • Lab Codes
        • Practical 1
        • Practical 2
          • Number Operations Web App
          • User Registration Form
          • User Registration Console App
        • Practical 3
          • Authentication and Authorization (Claims, Roles and Policies)
          • Client side state management in ASP.NET
          • Entity Framework Core
          • Form Validation
            • React form validation
          • HTML Tag Helpers
          • MVC demonstration
          • Razor Syntax
          • Server Side State Management in ASP.NET
      • Self Projects
        • Do while programs
        • Role playing game battle challenge
        • Project overview
        • Authentication
          • wwwroot
            • lib
              • jquery-validation
                • The MIT License (MIT)
  • 7th Semester
    • Advanced Java Programming
      • Class Codes
        • Unit1-6&8
          • javafx-sdk-21.0.1
            • legal
              • javafx.graphics
                • Independent JPEG Group (IJG) JPEG v9e
                • Mesa 3-D Graphics Library v21.0.3
              • javafx.media
                • Microsoft DirectShow Samples v156905
                • GNU Glib v2.72.0
                • GStreamer v1.20.1
                • LibFFI v3.4.4
              • javafx.web
                • IBM International Components for Unicode (ICU4C) v73.1
                • xmlsoft.org: libxml2 v2.10.4
                • xmlsoft.org: libxslt v1.1.35
                • WebKit Open Source Project: WebKit v616.1
          • src
            • main
              • java
                • Unit 1: Programming in Java
                  • 2. Concepts and Topics
                • Unit 2: User Interface Components with Swing
                • Unit 3: Event Handling
                • Unit 4: Database Connectivity
                • Unit 5: Network Programming
                • Unit 6: GUI with JavaFX
        • Unit7
          • src
            • main
              • webapp
                • index
      • Lab Codes
        • Lab
          • src
            • main
              • java
                • Practical 1
                • Practical 2
                • Practical 3
                • Practical 4
                • Practical5
    • Data warehouse and Data mining
  • docs
    • Contributor Covenant Code of Conduct
Powered by GitBook
On this page
  • 8085 Microprocessor
  • 8086 Microprocessor
  • Practice Programs for 8085 Microprocessor
  • Practice Programs for 8086 Microprocessor

Was this helpful?

  1. 2nd Semester

Microprocessor

PreviousAlgorithms used in Discrete Structure classNext8085 Microprocessor

Last updated 8 months ago

Was this helpful?

Assembly Level Language Programming

Needed files for assembly programming:

  • Either use online emulators like , or

  • Software links:

sim8085
8085 microprocessor emulator download link
8086 microprocessor emulator download link
8085 Microprocessor
Data Transfer and Instruction Set
Load register with data
Load register with data and copy content of this memory location to register C
Load content of memory location to register
Store content of register to memory location
Input data from port address and out through port address
Display content of memory location into port address
Swap contents of register B and C
Swap contents of memory location
Arithmetic and Logical Instruction Set
Add content of one register and another register and store the result in next register
Subtract content of memory location 5000H from 5001H and store result in 5002H
Add 16-bit data from register pair B and D and store result at HL pair
Load 00H into register B and 10H into register C. Increment content of register B and Decrement content of register C. Store result at memory locations 4000H and 4001H
Load 16-bit data of register pair from another register pair and store result
Perform AND, OR and XOR operation between 51H and A2H. Store the AND result at 9000H, OR at 9001H and XOR at 9002H
Show masking of lower and higher nibbles of 8-bit number. Store the original number in 7007H, masked lower nibble in 7008H and masked upper nibble in 7009H
SET the D6, D1 and D0 bits of 8 bits data A8H and store the result in memory location 1010H
RESET the D4, D3, D2 and D0 bits of 8-bit data 3DH and store the result in register B
Branching Instruction Set
Add the content of 4004H and 4005H and store the result and carry in successive memory location
Add two 16 bit numbers with carry
Subtract the content of register C from register B and store the difference at register L and borrow at register H
Subtract with borrow
Create a continous loop using unconditional jump instruction
Test the Jump on Zero (JZ=1) condition on arithmetic operation
Test the Jump on Zero (JPE=1) condition on logical operation
Test the jump on negative (S=1) condition on arithmetic operation
Rotate Instruction Set
Rotate left the data byte A1H two times
Rotate right the data byte F1H three times
Rotate left with carry the result of addition (AAH+EEH) three times
Rotate right with carry the result of subtraction (DEH-FAH) two times
Load two data stored in memory location 8000 and 8001 directly to HL register. Add them. If carry exists, rotate right with carry the accumulator result three times, otherwise terminate
Convert the total number of 1 in given bit number
Multiply, Divide and Memory Block Operations
Multiply
Divide
Copy block of memory to another memory location
Swap memory blocks
Sort memory block in ascending order
Sort memory block in descending order
Subroutine, Stack and BCD Conversion
Factorial of a number using subroutine
Sum of squares of the first n numbers
Convert binary to BCD
Convert BCD to binary
Stack implementation and add data directly
Stack implementation and add data indirectly
Use of stack to reverse the number stored in a memory stack and store in the same memory block
8086 Microprocessor
Basic Arithmetic
Add two numbers, store the result at DX register and carry at CX register
Add two numbers, store the result at DL register and carry at CL register.
Subtract two numbers, store the result at DX register and borrow at CL register
Multiply
Divide
Take single character input from keyboard and display it on screen
Print your name without using data variable
Sort given numbers in ascending order
Separate odd and even numbers
String Processing
Check Palindrome
Display list of strings
Find position of character in string
Reverse String
Practice Programs for 8085 Microprocessor
Ascending Sort
Descending Sort
Count the total number of 1 in given number
Reverse the number stored in one block and store in another
BCD to Binary conversion
Practice Programs for 8086 Microprocessor
Add two 16 bit number
Display string on the screen
Read the string and check whether they are same or not
Print data without Data variable