我用radasm+masm匯編這個程序出錯
-----------------------------------------------------------------
.model small,c
.data
buff db "this is a example.",0
.code
strlen proc uses ax bx,string:ptr byte
mov bx,string
xor cx,cx
mov al,[bx]
.while al!=0
inc cx
inc bx
mov al,[bx]
.endw
ret
strlen endp
.startup
invoke strlen,addr buff
.exit 0
end
-----------------------------------------------------------------
提示如下:
-----------------------------------------------------------------
C:\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\Masm32\Include" "tttt.asm"
Assembling: tttt.asm
tttt.asm(19) : error A2006: undefined symbol : DGROUP
Make error(s) occured.
Total compile time 172 ms
----------------------------------------------------------------
就是在代碼的".startup"那里提示出錯...
急,萬望指教