answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JudyJudy
Simplicity is my specialty.
Chat with Judy
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
More answers

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

User Avatar

Wiki User

13y ago
User Avatar

(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.

User Avatar

Wiki User

16y ago
User Avatar

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

User Avatar

Wiki User

15y ago
User Avatar

mainu te aap nai pta

User Avatar

Wiki User

14y ago
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