China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 09:36
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » When compiling with masm6.0, "can't open file a.asm" appears View 1,828 Replies 4
Original Poster Posted 2010-06-26 20:42 ·  中国 陕西 西安 电信
初级用户
Credits 88
Posts 32
Joined 2010-03-27 14:30
16-year member
UID 163163
Gender Male
Status Offline
What's going on here? I'm just a beginner, how to solve it? Hope the experts can give instructions! The source code is as follows, a very simple one

data segment
x db 1
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov dl,x
add dl,30h
mov ah,2h
int 21h
mov ah,4ch
int 21h
code ends
end start
Floor 2 Posted 2010-06-26 21:02 ·  中国 江苏 苏州 吴中区 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Save this program as a text file named a.asm. Then go to compile and link. Remember that you have raised a similar question in this forum before. Don't make the same mistake in the same place!
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 3 Posted 2010-06-26 21:20 ·  中国 陕西 西安 电信
初级用户
Credits 88
Posts 32
Joined 2010-03-27 14:30
16-year member
UID 163163
Gender Male
Status Offline
I just put the a.asm file in the masm folder and then it was compiled. Thanks very much. But ask, the a.exe I generated is not running properly. I want to look at it in debug. According to the book, I input debug a.exe in the command prompt, but it says file not found. Please give me some advice!! Thanks a lot!!
Floor 4 Posted 2010-06-26 22:41 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
First, switch the path to the directory of A.EXE 44. For long pathnames with spaces, etc., use "" to enclose them.
Floor 5 Posted 2010-06-27 16:31 ·  中国 陕西 西安 电信
初级用户
Credits 88
Posts 32
Joined 2010-03-27 14:30
16-year member
UID 163163
Gender Male
Status Offline
Just enter the path of a.exe just now, thank you very much
Forum Jump: