回 帖 发 新 帖 刷新版面

主题:[原创]初学者,请高手帮忙~

.model tiny 
.stack
.data
string db 'my name is',0dh,0ah,'$'
.code
.startup
mov dx,offset string
mov ah,9
int 21h
.exit 0
end


和老师编的一样,为啥总是提示错误:
object filename [hello.obj]:
source listing  [nul.lst]:
cross-reference ]nul.crf]:
hello.asm(6):error A2105:expected:instruction or dirctive
hello.asm(10):error A2105:expected:instruction or dirctive
50732+415716 bytes symbol space free
   0 warning erroors
   2 severe errors

第一次汇编,遇到问题自己解决不了,高手们指点一下吧~

回复列表 (共1个回复)

沙发

.startup  ???
改一下:
.model tiny 
.stack
.data
   string db 'my name is 你的名字',0dh,0ah,'$'
.code
start:
   mov dx,offset string
   mov ah,9
   int 21h
   mov ax,4c00h
   int 21h
end start

我来回复

您尚未登录,请登录后再回复。点此登录或注册