![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-15 00:49 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS开发编程 & 发展交流 (开发室) » When compiling with masm6.0, "can't open file a.asm" appears |
| Printable Version 2,064 / 4 |
| Floor1 chrise | Posted 2010-06-26 20:42 |
| 初级用户 Posts 32 Credits 88 | |
|
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 |
|
| Floor2 本是 | Posted 2010-06-26 21:02 |
| 银牌会员 Posts 790 Credits 2,227 | |
|
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!
|
|
| Floor3 chrise | Posted 2010-06-26 21:20 |
| 初级用户 Posts 32 Credits 88 | |
|
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!!
|
|
| Floor4 netwinxp | Posted 2010-06-26 22:41 |
| 高级用户 Posts 366 Credits 741 | |
|
First, switch the path to the directory of A.EXE 44. For long pathnames with spaces, etc., use "" to enclose them.
|
|
| Floor5 chrise | Posted 2010-06-27 16:31 |
| 初级用户 Posts 32 Credits 88 | |
|
Just enter the path of a.exe just now, thank you very much
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |