Home | | Microprocessors and Microcontrollers | Sample ASM Assembly Program - 8085 Processor

Chapter: Microprocessor and Microcontroller : Programming of 8085 Processor

Sample ASM Assembly Program - 8085 Processor

Programming using Loop structure with Counting and Indexing - 8085 Processor, Programming using subroutine Instructions - 8085 Processor, Programming using Look up table - 8085 Processor.

Sample Program

 

(1)Write an assembly program to add two numbers Program MVI D, 8BH MVI C, 6FH MOV A, C

 

1100 0011

 

1000 0101

0010 0000

 

ADD D

 

OUT PORT1

 

HLT

 

(2)Write an assembly program to multiply a number by 8 Program MVI A, 30H RRC

 

RRC RRC

 

OUT PORT1

 

HLT

 

(3)Write an assembly program to find greatest between two numbers Program MVI B, 30H MVI C, 40H MOV A, B CMP C

 

JZ EQU JC GRT

 

OUT PORT1

 

HLT

 

EQU: MVI A, 01H OUT PORT1

 

HLT

 

GRT: MOV A, C OUT PORT1

HLT

 

Programming using Loop structure with Counting and Indexing

 

(i) 16 bit Multiplication



(ii)Finding the maximum number in the given array


 

(iii) To sort the array of data in ascending order

 



 

Programming using subroutine Instructions

Generation of Square waveform using DAC



Programming using Look up table





An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions, called the instruction set, determines what functions the microprocessor can perform. These instructions can be classified into the following five functional categories: data transfer (copy) operations, arithmetic operations, logical operations, branching operations, and machine-control operations.


Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Microprocessor and Microcontroller : Programming of 8085 Processor : Sample ASM Assembly Program - 8085 Processor |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.