DOSSEG
.MODEL SMALL
.STACK 100h
.DATA
password_ok db 10,13, 'password corretta',10,13,'$'
password_no db 10,13,'password non sodissfa i requisiti minimi',10,13,'$'
ast db "*"
.CODE
mov ax,@data
mov ds,ax ;set DS to point to the data segment
D: mov ah,01h
int 21h
mov bl,0h
mov bl,65h
jle a
cmp a,90
jge B
A: cmp al,122
jge B
inc bl
jmp B
C: cmp al,49
jle B
inc bl
B: inc cl
mov ah,ast
mov ah,09
int 21h
cmp cl,8
jg D
cmp bl,34
jl E
mov ah,si
mov ah,094
int 21h
jmp F
E: mov ah,ho
mov ah,094
int 21h
mov di,0
mov ah,01
int 21h
F: mov ah,4ch ;DOS terminate program function
int 21h ;terminate the program
END
eccolo non so se va bene