Logo 
Search:

Assembly Language Articles

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

DISPLAY THE STRING ON THE SCREEN USING INT 21, SERVICES 01 & 02 ONLY

Posted By: Raymundo Fischer     Category: Assembly Language     Views: 3738

DISPLAY THE STRING ON THE SCREEN USING INT 21, SERVICES 01 & 02 ONLY.

Code for DISPLAY THE STRING ON THE SCREEN USING INT 21, SERVICES 01 & 02 ONLY in Assembly Language

MOV AH,02H
MOV AL,"#"
INT 21H

VAR DB 80
       DB 0
       DB 80 DUP('$')

DATA SEGMENT
    VAR1 DB 80
                         DB 0
             DB 80 DUP('$')
DATA ENDS

CODE SEGMENT
START:     ASSUME CS:CODE,DS:DATA
    MOV AX,DATA
    MOV DS,AX

    MOV SI,OFFSET VAR1+2
    MOV CH,00H
    MOV CH,05H
LP1:    MOV AH,01H
    INT 21H
    MOV [SI],AL
    INC SI
    LOOP LP1
MOV AX,0600H
    MOV BX,71H
    MOV CX,0000H
    MOV DX,184FH
    INT 10H

    MOV AH,02H
    MOV BH,00H
    MOV DH,10
    MOV DL,10
    INT 10H
    MOV CH,00H
    MOV CL,BYTEPTR[VAR1+2]
CODE ENDS
END START
  
Share: 



Raymundo Fischer
Raymundo Fischer author of DISPLAY THE STRING ON THE SCREEN USING INT 21, SERVICES 01 & 02 ONLY 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!