Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

Program to check given two values are equal or not

Posted By: Abigail Campbell     Category: Assembly Language     Views: 4528

A Program to check given two values are equal or not.

Code for Program to check given two values are equal or not in Assembly Language

TITLE PRO1
.MODEL SMALL
.DATA
                V3 DB   'EQUAL$'
                V4 DB   'NOTEQAUL$'

.CODE

MAIN    PROC 

        MOV  AX,@DATA
        MOV  DS,AX 

        MOV  AH,01H
        INT  21H

        MOV  DL,AL

        INT 21H

        CMP AL,DL
        JNE NOEQUAL

        MOV AH,09H
        LEA DX,V3
        INT 21H
        JMP BYE

NOEQUAL:
        
        MOV AH,09H
        LEA DX,V4       ; LOAD EFECTIVE ADDRESS OF V4 IN DX
        INT 21H

BYE:
        MOV AH,4CH
        INT 21H

MAIN    ENDP
        END  MAIN


OUTPUT
***********

C:\tasm>ex1
11EQUAL
C:\tasm>ex1
12NOTEQAUL
  
Share: 


Didn't find what you were looking for? Find more on Program to check given two values are equal or not Or get search suggestion and latest updates.

Abigail Campbell
Abigail Campbell author of Program to check given two values are equal or not is from Toronto, Canada.
 
View All Articles

 

Other Interesting Articles in Assembly Language:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!