Ive been in other forums with no luck. Im using Fasm here. Im trying to input a string and output it. But i dont get my desired result.
The second output gets overwritten for some reason. Can someoone tell me what im doing wrong here? Im really confused i cant find any reference on the net and i have no book(I think i would need one).
Pls help.
org 100h
start:
mov dx, hl_text
mov ax, 0900h
int 21h
input_string_here:
mov ax, 0A00h
int 21h
display_ye_text:
add dx, 02h
push dx
mov dx, ye_text
mov ax, 0900h
int 21h
display_output:
pop dx
int 21h
getch:
mov ax, 0700h ;getch() in TC
int 21h
mov ax, 4C00h
int 21h
hl_text db 'Please Enter a string: ', 24h
ye_text db 0Ah, 'You entered the string: ', 24h
It looks like you are not setting up your call to the Buffered Input function correctly, and you are not providing the necessary input buffer.
http://www.ctyme.com/intr/rb-2563.htm