A89: TICGG Help with mats
[Prev][Next][Index][Thread]
A89: TICGG Help with mats
attached is a small piece of code, could you tell me it errors out, i also
attached the error log.
Thanks
#include <nostub.h>
#include <all.h>
int _ti89;
int map1[10]={
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
};
int ptemp;
void _main(void)
{
ICON chari= {0x3C0,0x420,0xA50,0x420,0x240,0x180,0x180,0x3FFC,0x43C2,0x43C2,0x3C0,0x420,0x810,0x1008,0x1008,0x1008} ;
ICON grou[1]={0x8888,0x1111,0x2222,0x4444,0x8888,0x1111,0x2222,0x4444,0x8888,0x1111,0x2222,0x4444,0x8888,0x1111,0x2222,0x4444};
ICON* picon;
int X = 0;
int Y = 0;
int i;
int key=0;
LCD_BUFFER buffer;
LCD_BUFFER bg;
LCD_save(buffer);
ClrScr();
DrawStr(1,1,"Demo By Rob Smith",A_NORMAL);
DrawStr(1,10,"Press Any Key To Continue",A_NORMAL);
ngetchx();
ClrScr();
for(X=0;X<11;X+=1)
{
for(Y=0;Y<11;Y+=1)
{
ptemp=map1[X];
picon = 0;
picon = &grou[ptemp[Y]];
DrawIcon(X*16,Y*16,picon,A_NORMAL);
}
}
LCD_save(bg);
picon = 0;
picon = &chari;
X=0;
Y=0;
DrawIcon(X,Y,picon,A_XOR);
while(key!=264)
{
if(kbhit())
{
key=tolower(ngetchx());
if(key==337)
{
DrawIcon(X,Y,picon,A_XOR);
Y-=5;
DrawIcon(X,Y,picon,A_XOR);
}
if(key==340)
{
DrawIcon(X,Y,picon,A_XOR);
Y+=5;
DrawIcon(X,Y,picon,A_XOR);
}
if(key==338)
{
DrawIcon(X,Y,picon,A_XOR);
X-=5;
DrawIcon(X,Y,picon,A_XOR);
}
if(key==344)
{
DrawIcon(X,Y,picon,A_XOR);
X+=5;
DrawIcon(X,Y,picon,A_XOR);
}
}
}
GrayMode(GRAY_OFF);
ClrScr();
LCD_restore(buffer);
}
C:\tigcc>tigcc -O2 demo7.c gray.o
C:\TIGCC\gcc-m68k\m68k-coff\bin\gcc.exe -c -O2 demo7.c
demo7.c:6: warning: braces around scalar initializer for `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:6: warning: excess elements in scalar initializer after `map1[0]'
demo7.c:7: warning: braces around scalar initializer for `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:7: warning: excess elements in scalar initializer after `map1[1]'
demo7.c:8: warning: braces around scalar initializer for `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:8: warning: excess elements in scalar initializer after `map1[2]'
demo7.c:9: warning: braces around scalar initializer for `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:9: warning: excess elements in scalar initializer after `map1[3]'
demo7.c:10: warning: braces around scalar initializer for `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:10: warning: excess elements in scalar initializer after `map1[4]'
demo7.c:11: warning: braces around scalar initializer for `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:11: warning: excess elements in scalar initializer after `map1[5]'
demo7.c:12: warning: braces around scalar initializer for `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:12: warning: excess elements in scalar initializer after `map1[6]'
demo7.c:13: warning: braces around scalar initializer for `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:13: warning: excess elements in scalar initializer after `map1[7]'
demo7.c:14: warning: braces around scalar initializer for `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:14: warning: excess elements in scalar initializer after `map1[8]'
demo7.c:15: warning: braces around scalar initializer for `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:15: warning: excess elements in scalar initializer after `map1[9]'
demo7.c:16: warning: braces around scalar initializer for `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in scalar initializer after `map1[10]'
demo7.c:16: warning: excess elements in array initializer after `map1'
demo7.c: In function `_main':
demo7.c:43: subscripted value is neither array nor pointer
C:\tigcc>
----
Rob Smith
<a href="http://pa.ticalc.org">Visit Programmers Anonymous Today</a>
<a href="http://www.tigalaxy.com">Come and see the Improved TIGALAXY
Website</a>
<a href="mailto:kormoc@netzero.net">Email-Me</a>
<a href="aim:addbuddy?screenname=Billvortex">Add Me To Your Buddy List</a>
----
GET HIGH SPEED ACCESS FOR FREE
SIGN UP 10 PEOPLE AND GET A FREE MODEM
http://i.winfire.com/s/isapiEng.dll/wf.exe?cmd=rl&673,100032596&wf.exe
----
Stupidity got us into this mess - why can't it get us out?