Logo 
Search:

Assembly Language Articles

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

PROGRAM TO CHECK GIVEN TWO VALUE ARE EQUAL OR NOT

Posted By: Bitten Fischer     Category: Assembly Language     Views: 5916

WRITE A PROGRAM TO CHECK GIVEN TWO VALUE ARE EQUAL OR NOT.

Code for PROGRAM TO CHECK GIVEN TWO VALUE ARE EQUAL OR NOT in Assembly Language

.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
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM TO CHECK GIVEN TWO VALUE ARE EQUAL OR NOT Or get search suggestion and latest updates.

Bitten Fischer
Bitten Fischer author of PROGRAM TO CHECK GIVEN TWO VALUE ARE EQUAL OR NOT is from Frankfurt, Germany.
 
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!