Code in assembly printing alphabets twice instead of next line. (emu8086)

  Kiến thức lập trình

My code in assembly emu 8086 displays alphabets in lower case but it displays them twice instead of
displaying them in new line a single time each. Ive tried everything from AI etc but could not find the solution.

.model Small
.stack 100h
.data
.code
main proc

mov cx,26

mov dl,’a’

loop1:

mov ah,2
int 21h

mov dh,10
mov ah,2
int 21h

inc dl
loop loop1

mov ah,4ch
int 21h

end main
main endp

New contributor

Moeez Ahmad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT