Friday, December 2, 2016

Assembly Programming Language Tutorial Name and Roll Print Simple Program

Assembly Programming Language Tutorial - Write an Assembly Program to print your name and your student id on the next / following line.
Related Topic : Add two Decimal Numbers in Assembly Language
.MODEL SMALL
.STACK 100H
.DATA
    MSG1 DB 'My Name Is Shohag$'
    MSG2 DB 'Roll: 37$'
   
  .CODE
    MAIN PROC
        MOV AX,@DATA
        MOV DS,AX
       
        LEA DX,MSG1
        MOV AH,9
        INT 21H
       
        MOV AH,2
        MOV DL, 0DH
        INT 21H
       
        MOV DL,0AH
        INT 21H
       
        LEA DX,MSG2
        MOV AH,9
        INT 21H
       
        MOV AH,4CH
        INT 21H
       
        MAIN ENDP
    END MAIN

Output:

Assembly Programming Language Tutorial Name and Roll Print Simple Program



You Like It, Please Share This Article Using...




Don't Forget To Read This Also...




No comments :

Speak Your Mind: