4

In my program.asm I include file with the tasm directive

include "file.asm"

however I get an error "Can't locate file file.asm". The file is in the same directory as the source code which is D:\source. Tasm is in directory D:\tasm. I tried to create file TASM.CFG in the tasm/bin directory with the line /iD:\source but that didn't help. I also tried to move the file.asm into the tasm/bin directory, that also didn't help. I also tried to specify the full path in the include directive

include "D:\source\file.asm"

that also didn't help.

4

1 回答 1

5

请注意,MASMinclude 的语法很简单,include file.asm即没有引号。AFAIK MASM 是 TASM 的默认模式

参考TASM 5 用户指南的第 37 和 39 页

于 2012-11-13T14:57:14.350 回答