回 帖 发 新 帖 刷新版面

主题:[原创]怎么解决这个问题????


g:masm>ml 0001.asm ;0001.asm为文件名 路径在g:masm中
masm fatal eoerr A1000 cannot open file 0001.asm

回复列表 (共4个回复)

沙发

你文件名子错了.....
你在检查一下

板凳

好的,我试一下

3 楼

怎么用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 楼


刚刚改的

看一下还有没有错
自学汇编还真麻烦
.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

我来回复

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