关于 masm2012.5,w764 位系统,按照书上写的打入一个 asm 程序,结果生成 obj 文件时,说 start 符号无定义?
datarea segmentstring1 db 'Move the cursor backward.'
string2 db 'Move the cursor backward.'
mess1 db 'Match.',13, 10, '$'
mess2 db 'No match.',13, 10, '$'
datarea ends
prognam segment
main proc far
assume cs:prognam,ds:datarea,es:datarea
start:
push ds
sub ax,ax
push ax
mov ax, datarea
mov ds,ax
mov es,ax
lea si,string1
lea di,string2
cld
mov cx,25
repz cmpsb
jz match
lea dx,mess2
jmp short disp
match:
lea dx,mess1
disp:
mov ah,9
int 21h
ret
main endp
prognam ends
end start