【求救】msam32编译问题!!!
我刚刚开始学习汇编,使用沈美明,温冬婵《IBM-PC汇编语言程序设计》。
编译书上的一个例子:
------------------------------------------------------------------
.386
.model flat, stdcall
data segment
src_buf db 40 dup('a')
data ends
extra segment
dst_buf db 40 dup(?)
extra ends
;********************************************************************
code segment
assume cs:code,ds:data,es:extra
start:
; set up stack for return
push ds
sub ax,ax
push ax
mov ax,data
mov ds,ax
mov ax,extra
mov es,ax
;Main part of the program
lea si,src_buf
lea di,dst_buf
cld
mov cx,40
rep movsb
ret
code ends
end start
-----------------------------------------------------------
使用masm32编译这个程序,报错:
D:\exer\masm\test_1>ml /c /coff mov_str.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: mov_str.asm
mov_str.asm(21) : error A2004: symbol type conflict
mov_str.asm(24) : error A2004: symbol type conflict
请问大家,这个是什么原因啊?
谢谢 :-)