Hi
I want to read a string (Last name) from keyboard, concatenate it to another string (First Name) and then print it on screen. (Windows, EMU8086, EXE Template)
First I declare the variables in data segment
msg1 db 0ah,0dh,"Enter your last name: $" ;prompt message
msg2 db "Kamiar " ;first name var
lastname db 20,20 dup(?) ;srting var to save input
then print prompt message and get input
lea dx,msg1
mov ah,09h
int 21h
call read
read:
lea dx,lastname
mov ah,0ah
int 21h
concatenate it to the first name
add msg2,lastname
finally print it
add msg2,'$' ;add $ to end of string
mov dx,msg2
mov ah,09h
int 21h
but it's not working :(
Can you help me to resolve this?