刚开始学汇编时,一个只有几行代码的小程序也报错,仔细检查过后也没发现问题,但是仍然报错
程序源代码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
assume cs:codesg
codesg segment
start: mov ax,0123h
mov bx,8456h
add ax,bx
add ax,ax
mov ax,4c00h
int
21h
codesg ends
end start
|
报错信息:
Microsoft (R) Segmented Executable Linker Version 5.31.009 Jul 13 1992
Copyright (C) Microsoft Corp 1984-1992. All rights reserved.
Object Modules [.obj]: start_test.obj
Run File [start_test.exe]: "start_test.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
LINK : fatal error L1093: start_test.obj : object file not found
后来,经过查阅资料发现是文件名太长,文件名不要超过8个字就可以正常编译通过了
本文转自 pangfc 51CTO博客,原文链接:http://blog.51cto.com/983836259/1679764,如需转载请自行联系原作者