你这是以前编译器的代码吧, 现在xc8 不支持这个,看以下pic.h里的代码.
//
// Legacy Programming Macro Functions
//
#ifdef _XC8_MODE_
#define _NO_CONFIG_SUP(f) __asm("GLOBAL nosup@@$_$_" ___mkstr(f) "\nnosup@@$_$_" ___mkstr(f) " SET 0")
#define __CONFIG(x) _NO_CONFIG_SUP(CONFIG)
#define __IDLOC(w) _NO_CONFIG_SUP(IDLOC)
#define __IDLOC7(a,b,c,d) _NO_CONFIG_SUP(IDLOC7)
#define __PROG_CONFIG(a,x) _NO_CONFIG_SUP(PROG_CONFIG)
我试着编译你这个代码,没出错,但是有警告:
::: warning: (1374) the compiler feature "__CONFIG" is no longer supported; consult the documentation for more details
|