Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Help in TASM password protected program
hi to every one. im new here.
can anyone help me on my assignment.
were ask to create a program using TASM that will accept three letter password. if the password is correct it will display "CONGRATULATIONS"
and if it is wrong it will display "SORRY, Youre Out!!!!" and then terminate..
i know it simple "for masters like you"
but it is very hard for like me that has no background on assembly language.
heres my code
password db 'rio$'
passwordInput db 100, 99 dup (0)
msg1 db 'Congratulations!$'
msg2 db ' Sorry Youre Out $'
cloneP db ?
clonePI db ?
lea dx, [passwordInput]
mov ah, 0ah
lea di, [passwordInput+2]
lea si, [password]
lea dx, [msg1]
lea dx, [msg2]
thr problem here is when i input rio it says CONGRATULATIONS but when i put
rioasdasdqweq or anything but with rio on the first it accepts it and says congratulations...
pls help me debug my program...