#define SAVE_SCREEN #include int _ti89,_ti92plus; unsigned int tiles[2][192] = {{ // tile 0 0x0000,0x0000,0x4000,0x4040,0x40c0,0x4140,0x4040,0x4040, 0x4040,0x4040,0x4040,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 1 0x0000,0x0000,0x4000,0x41c0,0x4220,0x4020,0x4020,0x4040, 0x4080,0x4100,0x43e0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 2 0x0000,0x0000,0x4000,0x40e0,0x4110,0x4010,0x4060,0x4010, 0x4010,0x4110,0x40e0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 3 0x0000,0x0000,0x4000,0x4020,0x4060,0x40a0,0x40a0,0x4120, 0x41f0,0x4020,0x4020,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 3 0x0000,0x0000,0x4000,0x41e0,0x4100,0x4200,0x43c0,0x4020, 0x4020,0x4220,0x41c0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 4 0x0000,0x0000,0x4000,0x40e0,0x4110,0x4100,0x41e0,0x4110, 0x4110,0x4110,0x40e0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 5 0x0000,0x0000,0x4000,0x41f0,0x4020,0x4020,0x4040,0x4040, 0x4080,0x4080,0x4080,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 6 0x0000,0x0000,0x4000,0x40e0,0x4110,0x4110,0x40e0,0x4110, 0x4110,0x4110,0x40e0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 6 0x0000,0x0000,0x4000,0x41c0,0x4220,0x4220,0x4220,0x41e0, 0x4020,0x4220,0x41c0,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 7 0x0000,0x0000,0x4000,0x4238,0x4644,0x4a44,0x4244,0x4244, 0x4244,0x4244,0x4238,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 8 0x0000,0x0000,0x4000,0x4208,0x4618,0x4a28,0x4208,0x4208, 0x4208,0x4208,0x4208,0x4000,0x4000,0x4000,0x3ffc,0x0000, // tile 9 0x0000,0x0000,0x4000,0x4238,0x4644,0x4a04,0x4204,0x4208, 0x4210,0x4220,0x427c,0x4000,0x4000,0x4000,0x3ffc,0x0000, }, // ---- plane 2 ---- { // tile 0 0x3fff,0x6001,0xe001,0xe041,0xe0c1,0xe141,0xe041,0xe041, 0xe041,0xe041,0xe041,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 1 0x3fff,0x6001,0xe001,0xe1c1,0xe221,0xe021,0xe021,0xe041, 0xe081,0xe101,0xe3e1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 2 0x3fff,0x6001,0xe001,0xe0e1,0xe111,0xe011,0xe061,0xe011, 0xe011,0xe111,0xe0e1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 3 0x3fff,0x6001,0xe001,0xe021,0xe061,0xe0a1,0xe0a1,0xe121, 0xe1f1,0xe021,0xe021,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 3 0x3fff,0x6001,0xe001,0xe1e1,0xe101,0xe201,0xe3c1,0xe021, 0xe021,0xe221,0xe1c1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 4 0x3fff,0x6001,0xe001,0xe0e1,0xe111,0xe101,0xe1e1,0xe111, 0xe111,0xe111,0xe0e1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 5 0x3fff,0x6001,0xe001,0xe1f1,0xe021,0xe021,0xe041,0xe041, 0xe081,0xe081,0xe081,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 6 0x3fff,0x6001,0xe001,0xe0e1,0xe111,0xe111,0xe0e1,0xe111, 0xe111,0xe111,0xe0e1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 6 0x3fff,0x6001,0xe001,0xe1c1,0xe221,0xe221,0xe221,0xe1e1, 0xe021,0xe221,0xe1c1,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 7 0x3fff,0x6001,0xe001,0xe239,0xe645,0xea45,0xe245,0xe245, 0xe245,0xe245,0xe239,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 8 0x3fff,0x6001,0xe001,0xe209,0xe619,0xea29,0xe209,0xe209, 0xe209,0xe209,0xe209,0xe001,0xe001,0xffff,0xc002,0xfffc, // tile 9 0x3fff,0x6001,0xe001,0xe239,0xe645,0xea05,0xe205,0xe209, 0xe211,0xe221,0xe27d,0xe001,0xe001,0xffff,0xc002,0xfffc, }}; void _main(void) { int x,y; int tilewidth = 16; int tileheight = 16; int vcount = 3; int hcount = 4; int i; if (!GrayMode(GRAY_ON)) return; memset(GetPlane(0),0,LCD_SIZE); memset(GetPlane(1),0,LCD_SIZE); for (y=0;y