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 sting 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.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.