assume cs:code
code segment
start:
mov bh,0
mov bl,0
mov dh,0
mov cx,10
B1:cmp cx,0
jz stop
mov ah,1
int 21h
cmp al,'0'
jnb A1
inc dh
dec cx
A1:cmp al,'9'
jnb AA1
inc bh
dec cx
AA1:cmp al,'Z'
jnb AAA1
inc bl
dec cx
AAA1:cmp al,'a'
jnb AAAA1
inc dh
dec cx
AAAA1:cmp al,'z'
jnb AAAAA1
inc bl
dec cx
AAAAA1:inc dh
dec cx
stop:mov dl,bh
mov ah,02
int 21h
mov dl,bl
mov ah,02
int 21
mov dl,dh
int 21
mov ax,4c00h
int 21
code ends
end start |