How buffered input works

Looking at how you defined your input buffer (buf: db 20 dup (‘$’)), I get it that you want to cut corners and have the input already $-terminated ready for re-displaying it. Sadly this messes up the required settings for the DOS input function 0Ah and your program is in serious problems with a potential … Read more