Logo 
Search:

Assembly Language Articles

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

PROGRAM TO PRINT THE DIGITS

Posted By: Zoe Hughes     Category: Assembly Language     Views: 2911

WRITE A PROGRAM TO PRINT THE DIGITS.

Code for PROGRAM TO PRINT THE DIGITS in Assembly Language

prnchar macro char
        mov ah,02h
        mov dl,charint 21h
endm
data segment
        temp db ?
        msg db 10,13, "The digits are : $"
data ends
code segment
        assume ds:data, cs:code
start:
        mov ax,data
        mov ds,ax
        prnchar 0ah
        mov ah,09h
        lea dx,msg
        int 21h
        mov ah,00h
        mov al,30h
      l1:
        prnchar al
        inc al
        cmp al,3ah
        jnz l1
        prnchar 0ah
        mov ah,4ch
        int 21h
code ends
end start
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM TO PRINT THE DIGITS Or get search suggestion and latest updates.

Zoe Hughes
Zoe Hughes author of PROGRAM TO PRINT THE DIGITS is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 

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!