Logo 
Search:

Assembly Language Articles

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

PROGRAM TO ADD TWO HEXADECIMAL NUMBERS USING THE SEGMENT DEFINITIONS

Posted By: Kai Evans     Category: Assembly Language     Views: 14685

WRITE A PROGRAM TO ADD TWO HEXADECIMAL NUMBERS USING THE SEGMENT DEFINITIONS

Code for PROGRAM TO ADD TWO HEXADECIMAL NUMBERS USING THE SEGMENT DEFINITIONS in Assembly Language

ST_SEG  SEGMENT
        DW     64       DUP    (0)
ST_SEG  ENDS
DT_SEG  SEGMENT
        V1      DB      10H
        V2      DB      31H
        V3      DB      ?
DT_SEG ENDS
CD_SEG  SEGMENT
        
AD      PROC
        ASSUME CS:CD_SEG,DS:DT_SEG,SS:ST_SEG
        MOV     AX,DT_SEG
        MOV     DS,AX
        MOV     AL,V1
        ADD     AL,V2
        MOV     V3,AL
        MOV     DL,V3
        MOV     AH,02H
        INT     21H
        MOV     AH,4CH
        INT     21H
AD     ENDP
CD_SEG ENDS
END     AD
  
Share: 



Kai Evans
Kai Evans author of PROGRAM TO ADD TWO HEXADECIMAL NUMBERS USING THE SEGMENT DEFINITIONS is from London, United Kingdom.
 
View All Articles

 
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!