[help] error expected:instruction or directive!?

.model small
display db 'Please enter your password:','$'
InvalidMsg db 'Invalid login.Please try again.'
welMsg db 'Welcome to the SaPark Hotel Management System!','$'
pass db 6 DUP (24H),'$'
Rpass db '1231','$'
main proc
mov ax,@data
mov ds,ax
lea si,pass

mov cx,13 ;length of password
mov ah,09h
lea dx,display
int 21h ;show msg

mov ah,07h ;enter password
int 21h
cmp al,0dh
jz safestop
mov [si],al ;store password
inc si
mov ah,02h ;show "*" whan type password
mov dl,'*'
int 21h
dec cx
jnz next

cmp al,Rpass ;verify password
jz msg

mov ah,4ch , error:expected:instruction or directive
int 21h

lea dx,InvalidMsg ;show invlid Massenge
mov ah,02h
int 21h
call next

mov ah,09h
lea dx,pass
int 21h
mov ah,4ch
int 21h

main endp
end main

mov ah,4CH error

Started by Joan at February 03, 2016 - 4:58 PM

The comment symbol that line, has the colon on one line, is full of Chinese characters character, should use the half angle of English character.

Posted by Xavier at January 01, 2017 - 4:15 PM