من اين كد رو نوشتم اما از بالا به پايين چاپ ميكنه ولي من ميخوام از پايين به بالا و بصورت مور چاپ كنه !


; multi-segment executable file template.
data segment
n db "Enter your Name : $"
n1 db 20
n2 db ?
n3 db 21 dup(?)
i db ?
k dw ?
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
lea dx,n
mov ah,09h
int 21h
lea dx,n1
mov ah,0ah
int 21h
mov i,1
l1: mov al,n2
mov ah,0
cmp k,ax
jnl l2
mov dl,i
mov dh,i
mov bh,0
mov ah,02h
int 10h
lea dx,n3
add dx,k
mov cx,1
mov bx,1
mov ah,40h
int 21h
inc k
inc i
jmp l1
l2:
mov ah, 1
int 21h
mov ax, 4c00h ; exit to operating system.
int 21h
end start ; set entry point and stop the assembler.