emu8086 print string increment

Tag: string , printing , increment , 8086 Author: tompeng56 Date: 2013-09-17

Here i have some code to share, it use for promt input and user need to enter string and it will be print start a to your single string entered:

include 'emu8086.inc'
org 100h
print 'Enter small letter: '
mov dx, offset buffer
mov ah, 0ah
int 21h
jmp print
buffer db 10,?, 10 dup(' ')
xor bx, bx
mov bl, buffer[1]
mov ax, @data
mov ah, 2
mov dl, 97
int 21h
inc dl
cmp dl,buffer + 2
jng again
mov ah, 4ch
int 21h