【求救】出现错误expected:instruction or directive!?

amuletx 2013-12-02 04:03:55
.model small
.stack
.data
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','$'
.code
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


next:
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

compare:
cmp al,Rpass ;verify password
jz msg


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

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

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


main endp
end main



mov ah,4ch 出现错误
...全文
917 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zara 2013-12-03
  • 打赏
  • 举报
回复
那一行的注释符号,已经上一行的那个冒号,都是全角的汉字字符吧,应该用半角的英文字符的。

21,497

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧