answersLogoWhite

0


Best Answer

include irvine32.inc

.data

istno db "enter ist no",0

2nd db "enter second no",0

lagest db "largest no",0

.code

main proc

mov edx,offset istno

call writestring

call readint

call crlf

mov bx,ax

mov edx,offset 2nd

call writestring

call readint

call crlf

jg loop

loop;

mov edx,offset lagest

call writestring

call writeint

main endp

end main

assembly program to find the greatest of between two numbers is as follows:

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

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Say u have to add two numbers 4 and 6 this is your coding for Intel 8088 processor

-a0000

mov ax,4

mov bx,6

add ax,bx

u0,8

g=0,8

tada done so if u hav to add any other numbers just replace 6 and 4 by those numbers

take care bye bye

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

(include iostream....blah blah)

int myVariable; // integer my variable

int myVariable2;

cout << "Please enter a number" << endl;

cin >> myVariable;

cout << "Please enter the second number:" << endl;

cin >> myVariable2;

if (myVariable > myVariable2){

cout << "The first number was greater than the second number" << endl;

}

else

cout << "The second number was greater than the first" << endl;

return 0;

}

The point of the program is to get two numbers, compare them, and tell the user which one is greater.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Each processor type has its own assembly language. Are you looking for something generic, or for a particular processor?

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

mainu te aap nai pta

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Assembly language program to find the largest of series of numbers in 8051?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


Write an assembly language program to multiply two BCD numbers?

fish


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


A program for assembly language for traffic light control?

an assembly language program of traffic light


What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


Reserved word in assembly language program?

use of reserved word in assembly language


Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


Write a program in 8086 assembly language to draw a circle?

You need an 8086 assembly language pencil.


What translation programs converts assembly language programs to object program?

The only translation program that converts assembly language to machine code is an assembler.