将这句extern volatile nflag0STR _nflag0 0x0060;
换成定义一个变量,不管它的地址
即
#pragma DATA_SEG __SHORT_SEG MY_ZEROPAGE
nflag0STR _nflag0;
#define nflag0 _nflag0.Byte
#define standbyf _nflag0.Bits.standbyf
#define alterf0 _nflag0.Bits.alterf0
#define fasttestf _nflag0.Bits.fasttestf
#define nflag03 _nflag0.Bits.nflag03
#define nflag04 _nflag0.Bits.nflag04
#define nflag05 _nflag0.Bits.nflag05
#define economicf _nflag0.Bits.economicf
#define disp2sf _nflag0.Bits.disp2sf
#define nflag0_nflag0 _nflag0.MergedBits.grpnflag0
[此贴子已经被作者于2005-12-20 21:27:27编辑过] |