1 / 2

Program to Display a String Using Direct Addressing in Assembly Language

This program demonstrates how to display a string, word, or sentence using assembly language with direct addressing. The core algorithm involves storing the value '9' into the AH register and the address of the string data into the DX register. The program then uses interrupt 21h to display the string, followed by interrupt 20h to terminate the program. An example program shows the steps in code, illustrating the data flow and the necessary instructions to produce the output.

aleda
Télécharger la présentation

Program to Display a String Using Direct Addressing in Assembly Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Prog.-(3)* Write a program to display string, word or sentence. • Algorithm steps • Store 9 into AH • Store OFFSET ADDRESS Into DX • Display to DX Register • End Start AH=9 DX=address of string data OUTPUT STRING DATA End

  2. Example Program Direct Addressing B26:0100 MOV AH,9 B26:0102 MOV DX,0109 B26:0105 INT 21 B26:0107 INT 20 B26:0109dw ‘Aligarh Institute $’

More Related