- 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的关键字冲突了。