编译后出现illegal indirection ,该怎么改正啊
uchar code word_s[]={0x7E,0x7E,0xC3,0xC0,0x70,0x70,0x1C,0x1C,0x07,0xC7,0xFE,0x7E};//1*12uchar code word_h[]={0xC3,0xC3,0xC3,0xC3,0xC3,0xFF,0xFF,0xC3,0xC3,0xC3,0xC3,0xC3};//1*12
uchar code word_a[]={0x18,0x3C,0x7E,0xFF,0xC3,0xC3,0xC3,0xFF,0xFF,0xC3,0xC3,0xC3};//1*12
uchar code word_f[]={0xFF,0xFF,0xC0,0xC0,0xC0,0xFE,0xFE,0xC0,0xC0,0xC0,0xC0,0xC0};//1*12
uchar code word_t[]={0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18};//1*12
uchar code *shaft[]={word_s,word_h,word_a,word_f,word_t};
void Display(uchar x,y,m,n,unsigned char string)
{
unsigned char i,j,low_addr,high_addr;
uint addr;
addr=y*AP+x;//计算显示的地址
for(j=0;j<m;j++)//此循环用于写入要显示的内容
{
low_addr=addr%256;//低八位地址
high_addr=addr/256;//高八位地址
CSRW_ADDR(low_addr,high_addr);//
CSR_dir(0x4f);//光标向下移动
lcd_writecom(0x42);//写数据命令
for(i=0;i<n;i++)
{
lcd_writedat(string[i*m+j]);
}
addr++;
}
}
void dis_word(uchar x,y,k,unsigned char *shaft)
{
uchar i;
for(i=0;i<5;i++)
{
Display(x,y,1,12,*(shaft+i));//出现illegal indirection的错误提示
x++;
}
}
请高手指点一下该怎么写啊,谢谢了!!
[ 本帖最后由 i602313 于 2012-8-18 10:12 编辑 ]