Ive been trying to write a password program im assembly and ive written most of it but some of it i justcant do could anyone finish it of if they could below is the pseudocode for the program and on the next thread is what i have already done

*****************************************************************

.MODEL small

.STACK 200h

.data



.CODE



make ds point to data segment
make bx point to buffer

Call the procedures

procedure passprompt

prompt for password
test immediately after coding

end proc

procedure checkfirst

getfirst:

get an input
jump to error if input < 65 'A' = ASCII 65
Jump to error if input >122 'z' = ASCII 122
jump to check90to96 if input > 90 ASCII 90-96 sre not letters
mov input to the location pointed to by the bx
return

check90-97:

jump to error if input < 97 97 is ACII 'a'
mov input to the locationpointed to by the bx
return

error:
output appropriate error message
jump to get first

test immediately after coding
@,[,',{ should be reject
A,L,Z,a,l,z should be accepted

end checkfirst

Procedure checkrest

mov 11 to the cx a maximum of 11 characters more expected

getdataloop:
jump to exitproc if input = CR
jump to error2 if input <48 48 is ASCII 0 input must be valid
jump to error2 if input >122
jump to check uppercase if input >57
jump to update buffer input is between 0-9 and valid

checkuppercase:

jump to error2 if input < 65 cannot be a letter
jump to checklowercase if input > 90 not upper but could be lower case
jump to update buffer input is uppercase letter

checklowercase:

jump to error2 if input<97 not a letter
jump to updatebuffer inputis lower case letter

updatebuffer:

increment the bx
move contents of al to location held by bx
loop getdataloop get next input
ret procedure terminates after 11 inputs

error2:

output error message
jump to getdataloop jump does not decrement the cx

exit proc:
ret

test before proceeding to next procedure

end checkrest

procedure checklength

output error message if contents of cx>6
return

end checklength

procedure quit

usual exit routine

end quit

*********************************************************************