有一个问题请大家帮帮忙~
这个程序编译到两个错误(在中间),为什么呢?应该怎么改?
data segment
input db 100 dup(?)
msg1 db 'Hello,','$'
msg2 db ',Welcome to here!','$'
headmsg db 'PLEASE INPUT YOUR NAME:','$'
data ends
code segment
assume cs:code
assume ds:data
start: mov ax,data
mov ds,ax
mov si,0
call enter
lea dx,headmsg
call dispchs
repeat: mov ah,01h ; error A2008: syntax error : mov
int 21h
cmp al,0dh
je exit
mov input[si],al
inc si
jmp repeat ; error A2008: syntax error : repeat
exit: call enter
mov input[si],24h
call enter
lea dx,msg1
call dispchs
lea dx,input
call dispchs
lea dx,msg2
call dispchs
call enter
mov ah,4ch
int 21h
enter proc near
mov dl,0dh
call dispch
mov dl,0ah
call dispch
ret
enter endp
dispch proc near
mov ah,02h
int 21h
ret
dispch endp
dispchs proc near
mov ah,09h
int 21h
ret
dispchs endp
code ends
end start