Logo 
Search:

Assembly Language Articles

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

Program to print the message in middle of the screen

Posted By: Ryan Evans     Category: Assembly Language     Views: 7828

Write a program to print the message in middle of the screen.

Code for Program to print the message in middle of the screen in Assembly Language

DATA SEGMENT
    MSG1 DB "HELLO I AM JINESH $"
DATA ENDS
CODE SEGMENT
           ASSUME DS:DATA,CS:CODE
START:
        MOV AX,DATA
        MOV DS,AX
        MOV AX,0600H
        MOV BH,71H
        MOV CX,0000H
        MOV DX,184FH
        INT 10H

        MOV AH,02H
        MOV BH,00
        MOV DX,0C27H
        INT 10H

        MOV AH,09H
        LEA DX,MSG1
        INT 21H

        MOV AH,4CH
        INT 21H
CODE ENDS
END START

;------
;OUTPUT
;------













                                   HELLO I AM JINESH
  
Share: 


Didn't find what you were looking for? Find more on Program to print the message in middle of the screen Or get search suggestion and latest updates.

Ryan Evans
Ryan Evans author of Program to print the message in middle of the screen is from London, United Kingdom.
 
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].

 
Muhammad Afzal from Pakistan Comment on: Feb 06
Write a code in assembly language to draw a square in middle of the screen.

Using BIOS video services, the resolution of the screen should be 320x200. The dimension’s length should be 20 pixels. The color of the square should be yellow with black background as shown below:

Muhammad Afzal from Pakistan Comment on: Feb 06
Write a code in assembly language to draw a square in middle of the screen.

View All Comments