主题:[原创]怎么解决这个问题????
fastfei
[专家分:0] 发布于 2006-04-24 13:48:00
g:masm>ml 0001.asm ;0001.asm为文件名 路径在g:masm中
masm fatal eoerr A1000 cannot open file 0001.asm
回复列表 (共4个回复)
沙发
Runking [专家分:370] 发布于 2006-04-24 20:47:00
你文件名子错了.....
你在检查一下
板凳
fastfei [专家分:0] 发布于 2006-04-24 21:06:00
好的,我试一下
3 楼
fastfei [专家分:0] 发布于 2006-04-24 22:23:00
怎么用dos指令编译
include irvine32.inc
.data
source byte "this is the source string",0
target byte sizeof source dup(?)
.code
main proc
mov esi,0
mov ecx,sizeof source
l1:
mov al,source[esi]
mov target[esi],al
inc esi
loop l1
mov esi,offset target
mov ecx,sizeof target
call writestring
exit
main endp
end main
这个程序?????
编译时有什么样的要求???
4 楼
fastfei [专家分:0] 发布于 2006-04-25 14:59:00
刚刚改的
看一下还有没有错
自学汇编还真麻烦
.586p
.model flat,stacall
.stack 4096
.data
source byte "this is the source string",0
target byte sizeof source dup(?)
.code
main proc
mov esi,0
mov ecx,sizeof source
l1:
mov al,source[esi]
mov target[esi],al
inc esi
loop l1
mov ah,9
mov dx,offset target
int 21
exit
main endp
end main
我来回复