我有这个包含以下内容的.asm文件:
$INCLUDE (dev_opt.inc)
OPT CSEG OPT_BYTE
DB DEV_OPT_VAL_C0
DB DEV_OPT_VAL_C1
$_IF (DEV_OPT_BOOTSWAP_ENABLE = 1)
OPT2 CSEG AT 020C0H
$ENDIF
END
构建程序集时:
as -I"C:\inc" -o "$@" "$<"
我收到了这个错误:
../src/dev_Opt.asm:65: Error: invalid character '$' in mnemonic
../src/dev_Opt.asm:72: Error: no such instruction: `opt CSEG OPT_BYTE'
../src/dev_Opt.asm:73: Error: no such instruction: `db MCU_OPT_VAL_C0'
../src/dev_Opt.asm:74: Error: no such instruction: `db MCU_OPT_VAL_C1'
../src/dev_Opt.asm:76: Error: invalid character '$' in mnemonic
../src/dev_Opt.asm:77: Error: no such instruction: `opt2 CSEG AT 020C0H'
../src/dev_Opt.asm:78: Error: invalid character '$' in mnemonic
../src/dev_Opt.asm:79: Error: no such instruction: `end '