Any ideas why this wont work? Im compilng with A86.
I think it has something to do with these lines...Code:START: mov ds, cs jmp MAIN Message1 db 13, 10, "Password [pass.exe]", 13, 10 db "Copyright (C) 2000 Hero Inc. All rights reserved.", 13, 10, "$" Prompt db 13, 10, "Password: $" Password db "hello$" Buffer db "$" MAIN: ;Clear call ClearScreen ;Print Message1 mov dx, offset Message1 mov ah, 9 int 21h ;Print Prompt mov dx, offset Prompt mov ah, 9 int 21h ;Input string mov ah, 3fh xor bx, bx mov cx, 20h mov dx, offset Buffer int 21h mov ax, offset Buffer cmp ax, offset Password je EXIT jmp MAIN EXIT: call ClearScreen mov ax, 4c00h int 21h ClearScreen proc mov ax, 0003h int 10h ret ClearScreen endp END START
Code:mov ax, offset Buffer cmp ax, offset Password




Reply With Quote