我只是一個彙編程序設計的初學者。這是我正在嘗試的代碼,但它一直返回一個錯誤。需要關於masm32程序的幫助
錯誤是:
F:\masm32\bin>ml PRINTSTRING.ASM
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: PRINTSTRING.ASM
PRINTSTRING.ASM(35) : fatal error A1010: unmatched block nesting : data
我的計劃是:
;Print a String
data segment
;add your data here
mymessage db"Enter your data $"
end
stack segment
dw 128 dup(0)
end
code segment
Start:
;Set Segment Registers
mov ax,OFFSET mymessage
mov ds,ax
mov es,ax
lea dx,mymessage
mov ah,mymessage
mov ah,9
int 21h
mov ah,1
int 21h
mov ax,4c00h
int 21h
end
end Start
預先感謝您。
F:\ MASM32 \ BIN>毫升PRINTSTRING.ASM Microsoft (R)宏彙編程序版本6.14.8444 版權所有(C)Microsoft Corp 1981-1997。版權所有。 裝配:PRINTSTRING.ASM Microsoft(R)分段可執行鏈接程序版本5.60.339 1994年12月5日 版權所有(C)Microsoft Corp 1984-1993。版權所有。 對象模塊[.OBJ]:PRINTSTRING.obj 運行文件[PRINTSTRING.exe]: 「PRINTSTRING.exe」 列表文件[nul.map]:NUL 庫[.LIB]: 定義文件[nul.def ]: LINK:警告L4021:沒有堆棧段 LINK:警告L4038:程序沒有起始地址 @gunner – 2013-03-10 06:14:32