当前位置: 代码迷 >> 汇编语言 >> 刚刚找着书上的写代码,可是在masmplus中报错,该怎么解决
  详细解决方案

刚刚找着书上的写代码,可是在masmplus中报错,该怎么解决

热度:274   发布时间:2013-02-26 00:00:00.0
刚刚找着书上的写代码,可是在masmplus中报错
Assembly code
assume cs:code,ds:data,ss:stackdata segment    dw 0123h,0456hdata endsstack segment    dw 0,0stack endscode segmentstart:mov ax,stack        mov ss,ax        mov sp,16                mov ax,data        mov ds,ax                push ds:[0]        push ds:[2]        pop ds:[2]        pop ds:[0]                mov ax,4c00h        int 21hcode endsend start

ml.exe /c /coff /nologo /Fo"cp63.obj" "D:\MASMPlus\Project\cp63.asm"
 Assembling: D:\MASMPlus\Project\cp63.asm
D:\MASMPlus\Project\cp63.asm(12) : error A2004: symbol type conflict
D:\MASMPlus\Project\cp63.asm(16) : error A2004: symbol type conflict
D:\MASMPlus\Project\cp63.asm(27) : warning A4023: with /coff switch, leading underscore required for start address : start


------解决方案--------------------------------------------------------
data segment 里面的data是ASM的关键字冲突了。
  相关解决方案