8086 program to print a String
Problem: Write an assembly level program to print a given string .
Input String: "This is a sample string" Output: This is a sample string Input String: "Geeks for Geeks" Output: Geeks for Geeks
- Create a string
- Load the effective address of the string in dx using LEA command
- Print the string by calling the interrupt with 9H in AH
- The string must be terminated by ‘$’ sign
This is a sample string
The program cannot be run on an online editor, please use MASM to run the program and use dos box to run MASM, you might use any 8086 emulator to run the program.