(1)Write an assembly program to add two numbers Program MVI D, 8BH MVI C, 6FH MOV A, C
(2)Write an assembly program to multiply a number by 8 Program MVI A, 30H RRC
(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
EQU: MVI A, 01H OUT PORT1
GRT: MOV A, C OUT PORT1
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.
Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.