A89: TIGCC Help


[Prev][Next][Index][Thread]

A89: TIGCC Help



I have attached a very short source code to this email and was wondering if 
you can see any errors in it.
Thanks
#include <nostub.h>
#include <all.h>

int _ti89;

void _main(void)
{
LCD_BUFFER buffer;
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();
ICON char = {{0x3C0,0x420,0xA50,0x420,0x240,0x180,0x180,0x3FFC,0x43C2,0x43C2,0x3C0,0x420,0x810,0x1008,0x1008,0x1008}};
ICON* picon;
picon = 0;
picon = &char;
int X = 0;
int Y = 0;
for(X=0;X<=40;X+=2)
{
for(Y=0;Y<=40;Y+=2)
{
ClrScr();
DrawIcon(X,Y,picon,A_REPLACE);
}
}

ngetchx();
GrayMode(GRAY_OFF);
ClrScr();
ngetchx();
LCD_restore(buffer);
}
----
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>
----
Stupidity got us into this mess - why can't it get us out?

Follow-Ups: