Write a program that prompts the user to enter a line of text, On the next line, display the reverse letter entered. The Execution should look like this:

Type a line of Text: RAINBOW
Result: WOBNIAR
[esc key terminates the program]


would you please help me..

i dont know what to do..

use getch with echo (int 21h with ah=1)
result in al then push al and loop to getch with echo and so on until the input finish
to display the output just pop to dx register then use int 21h with ah=9h to write string ^^