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
Copyright © 2026 eLLeNow.com All Rights Reserved.