Logo 
Search:

Assembly Language Articles

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

PROGRAM TO ADD TWO HEX NUMBERS USING THE SHORTCUTS TO THE SEGMENT DIRECTIVES

Posted By: William Bouchard     Category: Assembly Language     Views: 20459

WRITE A PROGRAM TO ADD TWO HEX NUMBERS USING THE SHORTCUTS TO THE SEGMENT DIRECTIVES.

Code for PROGRAM TO ADD TWO HEX NUMBERS USING THE SHORTCUTS TO THE SEGMENT DIRECTIVES in Assembly Language

.MODEL SMALL
.STACK  64H
.DATA
        V1      DB      10H    
        V2      DB      31H
.CODE
AD      PROC
        MOV     AX,@DATA
        MOV     DS,AX
        MOV     AL,V1
        ADD     AL,V2
        MOV     DL,AL
        MOV     AH,02H
        INT     21H
        MOV     AH,4CH
        INT     21H
AD     ENDP
END     AD
  
Share: 



William Bouchard
William Bouchard author of PROGRAM TO ADD TWO HEX NUMBERS USING THE SHORTCUTS TO THE SEGMENT DIRECTIVES is from Montreal, 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!