xa #include 导致语法错误
xa #include results in syntax error
Mr. Fachat 的 xa
汇编程序在手册页中说:
#include "filename"
Inserts the contents of file filename at this position. If the file is not
found, it is searched using paths specified by the -I command line option or
the environment variable XAINPUT (q.v.). When inserted, the file will also be
parsed for preprocessor directives.
现在我不明白为什么这不起作用:
$ cat test1.asm
#include "test2.asm"
$ cat test2.asm
rts
$ xa test1.asm
#include "test2.asm"
test1.asm:line 1: 1000:Syntax error
Break after 1 errors
文档有错吗?我做错了什么吗?
我正在使用 xa v2.3.5 以防相关。
正如 Nick 所说,前导空格是错误的。
删除让程序编译。
Mr. Fachat 的 xa
汇编程序在手册页中说:
#include "filename"
Inserts the contents of file filename at this position. If the file is not
found, it is searched using paths specified by the -I command line option or
the environment variable XAINPUT (q.v.). When inserted, the file will also be
parsed for preprocessor directives.
现在我不明白为什么这不起作用:
$ cat test1.asm
#include "test2.asm"
$ cat test2.asm
rts
$ xa test1.asm
#include "test2.asm"
test1.asm:line 1: 1000:Syntax error
Break after 1 errors
文档有错吗?我做错了什么吗?
我正在使用 xa v2.3.5 以防相关。
正如 Nick 所说,前导空格是错误的。
删除让程序编译。