org 100h

mov ah, 09h
mov dx, entername
mov cx, 16
int 21h


getname:

mov ah, 00h ; keyboard input subprogram

int 16h ; character input 

mov [si], al
inc si

jmp getname
printstrg:

mov ah, 09h
mov dx, nameis
int 21h
mov ah, 09h
mov dx, si
int 21h
nameis db 13, 10 , "Your Name IS: ", 0
entername db "Enter Your Name: ", 0

What IS WRONG!!!:(

what is the problem? What does it do that you don't want it to do? Does it assemble without errors? If not what are the error messages?

I can see that line 18 is a non-conditional jump which will cause an infinite loop.

Ancient Dragon is right you have to find a place to add this;

jmp printstrg

or else your code will never get to line 21

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.