WAP in 8086 that can be used for password
matching.
;ABSTRACT : this program inputs a password
;registers used : CS,DS,ES,AX,DX,CX,SI,DI
;port used : fffah
;PROCEDURES : None used
DATA_HERE SEGMENT
PASSWORD DB ‘FAILSAFE’
INPUT_WORD DB 8 DUP(?) ; SPACE FOR USER INPUT
DATA_HERE ENDS
CODE_HERE SEGMENT
ASSUME CS:CODE_HERE,DS:DATA_HERE,
ES:DATA_HERE
MOV AX,DATA_HERE
MOV DS,AX
MOV ES,AX
MOV DX,OFFFEH
AL,99H
OUT DX,AL
LEA SI,PASSWORD
LEA DI, INPUT_WORD
MOV CX,O8H
CLD
REPE CMPSB
JNE SOUND_ALARM
JMP OK
SOUND_ALARM:
MOV AL,01
MOV DX,0FFFAH
OUT DX,AL
HLT
OK: NOP
CODE_HERE ENDS
END
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment