OpenCores
URL https://opencores.org/ocsvn/395_vgs/395_vgs/trunk

Subversion Repositories 395_vgs

[/] [395_vgs/] [trunk/] [src/] [PIC18/] [intro.c] - Blame information for rev 32

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 zuofu
#include <system.h>
2
#include "gpu_pic.h"
3 31 zuofu
#include "input.h"
4 27 zuofu
 
5
#pragma CLOCK_FREQ 50000000                                             //required for accurate delay functionality
6 31 zuofu
//#pragma DATA 0x2007, 0x3F3A                                   //Configuration bits to prevent having to configure in programmer
7 27 zuofu
 
8 31 zuofu
 
9
void scene1(void)
10 27 zuofu
{
11
        char i = 0;
12
        char j = 0;
13
 
14 31 zuofu
        //initalize graphics to original settings
15
 
16
        Bitmap black;
17
                black.address = 0x0001C200;
18
                black.lines = 0x00F0;
19
                black.width = 0x00A0;
20 27 zuofu
 
21 31 zuofu
        Sprite near_future;
22
                near_future.image.address = 0x00025800;
23
                near_future.image.lines = 0x000B;
24
                near_future.image.width = 0x00A0;
25
                near_future.position.x = 0;
26
                near_future.position.y = 63;
27
                near_future.alpha = 0;
28
 
29
        Sprite eye_anim;
30
                eye_anim.image.address = 0x00026CA0;
31
                eye_anim.image.lines = 0x001B;
32
                eye_anim.image.width = 0x001F;
33
                eye_anim.position.x = 14;
34
                eye_anim.position.y = 135;
35
                eye_anim.alpha = 0;
36 27 zuofu
 
37 31 zuofu
        Sprite eye_mask;
38
                eye_mask.image.address = 0x0001C200;
39
                eye_mask.image.lines = 0x001B;
40
                eye_mask.image.width = 0x001F;
41
                eye_mask.position.x = 14;
42
                eye_mask.position.y = 135;
43
                eye_mask.alpha = 0;
44 27 zuofu
 
45 31 zuofu
        Sprite compass;
46
                compass.image.address = 0x00029A40;
47
                compass.image.lines = 0x0006;
48
                compass.image.width = 0x002D;
49
                compass.position.x = 51;
50
                compass.position.y = 134;
51
                compass.alpha = 0;
52 27 zuofu
 
53 31 zuofu
        Sprite lines;
54
                lines.image.address = 0x00029E00;
55
                lines.image.lines = 0x001A;
56
                lines.image.width = 0x004F;
57
                lines.position.x = 73;
58
                lines.position.y = 76;
59
                lines.alpha = 0;
60
 
61
        Sprite bars;
62
                bars.image.address = 0x0002AE94;
63
                bars.image.lines = 15;
64
                bars.image.width = 0x002F;
65
                bars.position.x = 10;
66
                bars.position.y = 81;
67
                bars.alpha = 0;
68
 
69
        Sprite outline;
70
                outline.image.address = 0x00027D80;
71
                outline.image.lines = 46;
72
                outline.image.width = 43;
73
                outline.position.x = 27;
74
                outline.position.y = 130;
75
                outline.alpha = 1;
76
 
77
//right limit is about 94,
78
//left limit is about 51
79
/*
80
        Sprite north;
81
                north.image.address = 0x00029ACA;
82
                north.image.lines = 6;
83
                north.image.width = 2;
84
                north.position.x =      92;
85
                north.position.y = 128;
86
                north.alpha = 1;
87
 
88
        Sprite east;
89
                east.image.address = 0x00029ACE;
90
                east.image.lines = 6;
91
                east.image.width = 2;
92
                east.position.x =       51;
93
                east.position.y = 128;
94
                east.alpha = 1;
95
 
96
        Sprite south;
97
                south.image.address = 0x00029AD2;
98
                south.image.lines = 6;
99
                south.image.width = 2;
100
                south.position.x =      65;
101
                south.position.y = 128;
102
                south.alpha = 1;
103
 
104
        Sprite west;
105
                west.image.address = 0x00029AD6;
106
                west.image.lines = 6;
107
                west.image.width = 2;
108
                west.position.x =       80;
109
                west.position.y = 128;
110
                west.alpha = 1;
111
*/
112
        //fade in introduction text
113
        drawtobackground(black);
114
        delay_s(2);
115
        drawsprite(near_future);
116
        delay_ms(255);
117
        near_future.image.address = 0X00025EE0;
118
        drawtobackground(black);
119
        drawsprite(near_future);
120
        delay_ms(255);
121
        near_future.image.address = 0X000265C0;
122
        drawtobackground(black);
123
        drawsprite(near_future);
124
        delay_s(2);
125
        //black screen - dramatic pause
126
        drawtobackground(black);
127
        delay_s(2);
128
        //draw eye open animation
129
        for (i = 0; i < 5; i++)
130
        {
131
                drawsprite(eye_mask);
132
                drawsprite(eye_anim);
133
                eye_anim.image.address += 0x00000020;
134
                delay_ms(100);
135
        }
136
        //draw and animate compass
137
        j = 30;
138
        for ( i = 0; i < 5; i++)//slow down
139
        {
140
                drawsprite(compass);//1
141 27 zuofu
                compass.image.address += 0x0000002E;
142
                delay_ms(j);
143
                drawsprite(compass);//2
144
                compass.image.address += 0x0000002E;
145
                delay_ms(j);
146
                drawsprite(compass);//3
147
                compass.image.address -= 0x0000005C;
148
                delay_ms(j);
149 31 zuofu
                j+= 15;
150
        }
151
        j=20;
152
        for ( i = 0; i < 5; i++)//reverse
153
        {
154
                compass.image.address += 0x0000005C;
155
                drawsprite(compass);//3
156
                compass.image.address -= 0x0000002E;
157
                delay_ms(j);
158
                drawsprite(compass);//2
159
                compass.image.address -= 0x0000002E;
160
                delay_ms(j);
161
                drawsprite(compass);//1
162
                delay_ms(j);
163
                j+= 15;
164
        }
165
        j=150;
166
        for ( i = 0; i < 3; i++)//speed up
167
        {
168
                drawsprite(compass);//1
169
                compass.image.address += 0x0000002E;
170
                delay_ms(j);
171
                drawsprite(compass);//2
172
                compass.image.address += 0x0000002E;
173
                delay_ms(j);
174
                drawsprite(compass);//3
175
                compass.image.address -= 0x0000005C;
176
                delay_ms(j);
177
                j-= 60;
178
        }
179
        drawsprite (lines);
180
        drawsprite (bars);
181 27 zuofu
 
182 31 zuofu
        j=10;
183
        for ( i = 0; i < 2; i++)//slow down
184
        {
185 27 zuofu
                drawsprite(compass);
186
                compass.image.address += 0x0000002E;
187
                delay_ms(j);
188
                drawsprite(compass);//2
189
                compass.image.address += 0x0000002E;
190
                delay_ms(j);
191
                drawsprite(compass);//3
192
                compass.image.address -= 0x0000005C;
193
                delay_ms(j);
194 31 zuofu
                j+= 40;
195
        }
196
 
197
        lines.image.address = 0x00029E50;
198
        lines.image.width = 0x004B;
199
        bars.image.address += 0x00000960;
200
        bars.image.width = 0x0035;
201
        drawsprite (lines);
202
        drawsprite (bars);
203 27 zuofu
 
204 31 zuofu
        drawsprite(compass);
205
        compass.image.address += 0x0000002E;
206
        delay_ms(j);
207
        drawsprite(compass);//2
208
        compass.image.address += 0x0000002E;
209
        delay_ms(j);
210
        drawsprite(compass);//3
211
        compass.image.address -= 0x0000005C;
212
        delay_ms(j);
213
        j+= 40;
214
 
215
        lines.image.address = 0x0002AE40;
216
        lines.image.width = 0x0053;
217
        bars.image.address += 0x0000960;
218
        drawsprite (lines);
219
        drawsprite (bars);
220
 
221
        //last compass animation
222
        //drawsprite (north);
223
        //drawsprite (south);
224
        //drawsprite (east);
225
        //drawsprite (west);
226
 
227
        drawsprite(compass);
228
        compass.image.address += 0x0000002E;
229
        delay_ms(j);
230
        drawsprite(compass);//2
231
        compass.image.address += 0x0000002E;
232
        delay_ms(j);
233
        drawsprite(compass);//3
234
        compass.image.address -= 0x0000005C;
235
        delay_ms(j);
236
        drawsprite(compass);//1
237
 
238
        lines.image.address = 0x0002BE80;
239
        bars.image.address += 0x00000961;
240
        bars.image.width = 0x0036;
241
        drawsprite (lines);
242
        drawsprite (bars);
243
        delay_ms(200);
244
 
245
        lines.image.address = 0x0002CEC0;
246
        lines.image.lines = 32;
247
        lines.image.width = 84;
248
        lines.position.x = 72;
249
        lines.position.y = 75;
250
        bars.image.address += 0x00000960;
251
        drawsprite (bars);
252
        drawsprite (lines);
253
        delay_ms(50);
254
        bars.image.address = 0x000713E0;
255
        bars.image.lines = 21;
256
        bars.image.width = 62;
257
        bars.position.x = 4;
258
        bars.position.y = 80;
259
        drawsprite (bars);
260
        drawsprite (lines);
261
 
262
        //glitch stuff up
263
        for (i = 0; i < 50; i++)
264
        {
265
                bars.image.address = 0x000713E0;
266
                lines.image.address = 0x000821E0;
267
                drawsprite(bars);
268 27 zuofu
                drawsprite (lines);
269 31 zuofu
                delay_ms(5);
270
                bars.image.address = 0x000706C0;
271
                lines.image.address = 0x0002CEC0;
272
                drawsprite(bars);
273
                drawsprite (lines);
274
                delay_ms(5);
275
        }
276 27 zuofu
 
277 31 zuofu
        //draw overlay
278
 
279
        drawsprite (outline);
280
 
281
        for (i = 0; i < 30; i++)
282
        {
283
                bars.image.address = 0x000713E0;
284
                lines.image.address = 0x000821E0;
285
                drawsprite(bars);
286
                drawsprite (lines);
287
                delay_ms(5);
288
                bars.image.address = 0x000706C0;
289 27 zuofu
                lines.image.address = 0x0002CEC0;
290 31 zuofu
                drawsprite(bars);
291 27 zuofu
                drawsprite (lines);
292 31 zuofu
                delay_ms(5);
293
        }
294
 
295
        //draw eye close animation with overlay
296
        eye_anim.image.address = 0x00026D20;
297
        for (i = 0; i < 5; i++)
298
        {
299
                drawsprite(eye_mask);
300
                drawsprite(eye_anim);
301
                drawsprite(outline);
302
                eye_anim.image.address -= 0x00000020;
303 27 zuofu
                delay_ms(50);
304 31 zuofu
        }
305
        //draw eye open with overlay
306
        eye_anim.image.address = 0x00026CA0;
307
        for (i = 0; i < 5; i++)
308
        {
309
                drawsprite(eye_mask);
310
                drawsprite(eye_anim);
311
                drawsprite(outline);
312
                eye_anim.image.address += 0x00000020;
313
                delay_ms(50);
314
        }
315
 
316
        delay_ms(255);
317
        //draw rest of overlay
318
        drawsprite(eye_mask);
319
        outline.position.x = 24;
320
        outline.image.address = 0x00027DAB;
321
        outline.image.width = 46;
322
        drawsprite(outline);
323
        drawsprite(compass);
324
        delay_ms(200);
325
        outline.image.address = 0x00027DD9;
326
        outline.image.width = 60;
327
        drawsprite(outline);
328
        drawsprite(compass);
329
        delay_s(2);
330
 
331
        return;
332
}
333
void scene2(void)
334
{
335
        char i = 0;
336
        char j = 0;
337
 
338
        //initalize graphics to original settings
339
 
340
        Bitmap black;
341
                black.address = 0x0001C200;
342
                black.lines = 0x00F0;
343
                black.width = 0x00A0;
344
 
345
        Sprite pilot;
346
                pilot.image.address = 0x000AB180;//0x000A4740;
347
                pilot.image.lines = 170;
348
                pilot.image.width = 77;
349
                pilot.position.x = 20;
350
                pilot.position.y = 39;
351
                pilot.alpha = 1;
352
 
353
        Sprite screen0;
354
                screen0.image.address = 0x000A86AD;
355
                screen0.image.lines = 69;
356
                screen0.image.width = 40;
357
                screen0.position.x = 72;
358
                screen0.position.y = 71;
359
                screen0.alpha = 1;
360 27 zuofu
 
361 31 zuofu
        Sprite screen1;
362
                screen1.image.address = 0x000A4F0D;
363
                screen1.image.lines = 89;
364
                screen1.image.width = 59;
365
                screen1.position.x = 72;
366
                screen1.position.y = 59;
367
                screen1.alpha = 1;
368
 
369
        Sprite screen2;
370
                screen2.image.address = 0x0009E5C0;
371
                screen2.image.lines = 156;
372
                screen2.image.width = 57;
373
                screen2.position.x = 49;
374
                screen2.position.y = 25;
375
                screen2.alpha = 1;
376
 
377
        Sprite screen3;
378
                screen3.image.address = 0x0009E5F9;
379
                screen3.image.lines = 156;
380
                screen3.image.width = 38;
381
                screen3.position.x = 106;
382
                screen3.position.y = 25;
383
                screen3.alpha = 1;
384
 
385
        Sprite screen4;
386
                screen4.image.address = 0x0009A060;
387
                screen4.image.lines = 111;
388
                screen4.image.width = 40;
389
                screen4.position.x = 13;
390
                screen4.position.y = 3;
391
                screen4.alpha = 1;
392
 
393
        Sprite screen5;
394
                screen5.image.address = 0x0009A095;
395
                screen5.image.lines = 111;
396
                screen5.image.width = 21;
397
                screen5.position.x = 67;
398
                screen5.position.y = 3;
399
                screen5.alpha = 1;
400
 
401
        Sprite screen6;
402
                screen6.image.address = 0x00099EEB;
403
                screen6.image.lines = 17;
404
                screen6.image.width = 17;
405
                screen6.position.x = 120;
406
                screen6.position.y = 2;
407
                screen6.alpha = 1;
408
 
409
        Sprite screen7;
410
                screen7.image.address = 0x000AA575;
411
                screen7.image.lines = 20;
412
                screen7.image.width = 16;
413
                screen7.position.x = 143;
414
                screen7.position.y = 188;
415
                screen7.alpha = 1;
416
 
417
        Sprite boot0;
418
                boot0.image.address = 0x000A478D;
419
                boot0.image.lines = 12;
420
                boot0.image.width = 59;
421
                boot0.position.x = 6;
422
                boot0.position.y = 15;
423
                boot0.alpha = 1;
424
 
425
        Sprite boot1;
426
                boot1.image.address = 0x000A0EBF;
427
                boot1.image.lines = 9;
428
                boot1.image.width = 65;
429
                boot1.position.x = 6;
430
                boot1.position.y = 29;
431
                boot1.alpha = 1;
432
 
433
        Sprite boot2;
434
                boot2.image.address = 0x000A145F;
435
                boot2.image.lines = 9;
436
                boot2.image.width = 65;
437
                boot2.position.x = 6;
438
                boot2.position.y = 44;
439
                boot2.alpha = 1;
440
 
441
        Sprite boot3;
442
                boot3.image.address = 0x000A19FF;
443
                boot3.image.lines = 9;
444
                boot3.image.width = 26;
445
                boot3.position.x = 6;
446
                boot3.position.y = 58;
447
                boot3.alpha = 1;
448 27 zuofu
 
449 31 zuofu
        Sprite boot4;
450
                boot4.image.address = 0x00099AC0;
451
                boot4.image.lines = 9;
452
                boot4.image.width = 60;
453
                boot4.position.x = 6;
454
                boot4.position.y = 73;
455
                boot4.alpha = 1;
456
 
457
        Sprite boot5;
458
                boot5.image.address = 0x00099AFC;
459
                boot5.image.lines = 9;
460
                boot5.image.width = 60;
461
                boot5.position.x = 66;
462
                boot5.position.y = 73;
463
                boot5.alpha = 1;
464
 
465
        drawtobackground (black);
466
        delay_s(1);
467
        drawsprite(pilot);
468
        delay_ms(200);
469
        drawsprite(screen0);
470
        //flash newest screen
471
        for (i = 0; i < 10; i++)
472
        {
473
                drawtobackground(black);
474
                drawsprite(pilot);
475
                delay_ms(25);
476
                drawsprite(screen0);
477
                delay_ms(25);
478
        }
479
        drawsprite(screen1);
480
        for (i = 0; i < 10; i++)
481
        {
482
                drawtobackground(black);
483
                drawsprite(pilot);
484
                drawsprite(screen0);
485
                delay_ms(25);
486
                drawsprite(screen1);
487
                delay_ms(25);
488
        }
489
 
490
        drawsprite(screen2);
491
        drawsprite(screen3);
492
        for (i = 0; i < 10; i++)
493
        {
494
                drawtobackground(black);
495
                drawsprite(pilot);
496
                drawsprite(screen0);
497
                drawsprite(screen1);
498
                delay_ms(25);
499
                drawsprite(screen2);
500
                drawsprite(screen3);
501
                delay_ms(25);
502
                if (i == 3)
503
                        pilot.image.address = 0x000AB1CD;
504
        }
505 27 zuofu
 
506 31 zuofu
        delay_ms(255);
507
        drawsprite(screen4);
508
        drawsprite(screen5);
509
        drawsprite(screen6);
510
        drawsprite(screen7);
511
        for (i = 0; i < 10; i++)
512
        {
513
                drawtobackground(black);
514
                drawsprite(pilot);
515
                drawsprite(screen0);
516
                drawsprite(screen1);
517
                drawsprite(screen2);
518
                drawsprite(screen3);
519
                delay_ms(25);
520
                drawsprite(screen4);
521
                drawsprite(screen5);
522
                drawsprite(screen6);
523
                drawsprite(screen7);
524
                delay_ms(25);
525
                if (i == 7)
526
                        pilot.image.address = 0x000A4740;
527
        }
528 27 zuofu
 
529 31 zuofu
        delay_s (1);
530
        drawsprite(boot0);
531
        delay_ms(255);
532
        delay_ms(255);
533
        drawsprite(boot1);
534
        delay_ms(255);
535
        delay_ms(255);
536
        delay_ms(255);
537
        drawsprite(boot2);
538
        delay_s(2);
539
        drawsprite(boot3);
540
        delay_ms(255);
541
        drawsprite(boot4);
542
        drawsprite(boot5);
543
        delay_s(1);
544 27 zuofu
 
545 31 zuofu
        return;
546
}
547
 
548
void scene4(void)
549
{
550
        char i = 0;
551
        char j = 0;
552
 
553
        Bitmap black;
554
                black.address = 0x0001C200;
555
                black.lines = 0x00F0;
556
                black.width = 0x00A0;
557
 
558
        Sprite skyline;
559
                skyline.image.address = 0x00090510;
560
                skyline.image.lines = 320;
561
                skyline.image.width = 0;
562
                skyline.position.x = 80;
563
                skyline.position.y = 0;
564
                skyline.alpha = 0;
565
 
566
        Sprite plane_1;
567
                plane_1.image.address = 0x0008B7E0;
568
                plane_1.image.lines = 123;
569
                plane_1.image.width = 40;
570
                plane_1.position.x = 0;
571
                plane_1.position.y = 200;
572
                plane_1.alpha = 1;
573
 
574
        Sprite plane_2;
575
                plane_2.image.address = 0x0008B808;
576
                plane_2.image.lines = 123;
577
                plane_2.image.width = 40;
578
                plane_2.position.x = 40;
579
                plane_2.position.y = 200;
580
                plane_2.alpha = 1;
581
 
582
        Sprite plane_3;
583
                plane_3.image.address = 0x0008B830;
584
                plane_3.image.lines = 123;
585
                plane_3.image.width = 40;
586
                plane_3.position.x = 80;
587
                plane_3.position.y = 200;
588
                plane_3.alpha = 1;
589
 
590
        Sprite plane_4;
591
                plane_4.image.address = 0x0008B858;
592
                plane_4.image.lines = 123;
593
                plane_4.image.width = 40;
594
                plane_4.position.x = 120;
595
                plane_4.position.y = 200;
596
                plane_4.alpha = 1;
597
 
598
        drawtobackground(black);
599
 
600
        for (i = 0; i <80 ; i++)
601
        {
602
                drawsprite (skyline);
603
                drawsprite (plane_1);
604
                drawsprite (plane_2);
605
                drawsprite (plane_3);
606
                drawsprite (plane_4);
607
                //do some slide fx here
608
                skyline.image.width +=2;
609
                skyline.image.address --;
610
                skyline.position.x --;
611
 
612
                plane_1.position.y -= 1;
613
                plane_2.position.y -= 1;
614
                plane_3.position.y -= 1;
615
                plane_4.position.y -= 1;
616
 
617
                delay_ms(20 + i/2);
618
        }
619
        delay_s(3);
620
}
621
 
622
void scene5(void)
623
{
624
        char i = 0;
625
        char j = 0;
626
        unsigned long takeoff_addr[8] =
627
        {
628
                0x0002E720,
629
                0x000332C0,
630
                0x00037E60,
631
                0x0003CA00,
632
                0x00040BA0,
633
                0x00044D40,
634
                0x00049840,
635
                0x0004E3E0
636
        };
637
        char takeoff_lines[8] =
638
        {
639
                121,
640
                121,
641
                121,
642
                105,
643
                105,
644
                120,
645
                120,
646
                121
647
        };
648
        Bitmap black;
649
                black.address = 0x0001C200;
650
                black.lines = 0x00F0;
651
                black.width = 0x00A0;
652
 
653
        Sprite takeoff;
654
                takeoff.image.address = takeoff_addr[0];
655
                takeoff.image.lines = takeoff_lines[0];
656
                takeoff.image.width = 160;
657
                takeoff.position.x = 0;
658
                takeoff.position.y = 49;
659
                takeoff.alpha = 0;
660
 
661
        drawtobackground(black);
662
 
663
        //accelerate plane
664
        for (i = 0; i < 15 ; i++)
665
        {
666
                for ( j = 0; j < 8; j++)
667 27 zuofu
                {
668 31 zuofu
                        drawsprite (takeoff);
669
                        takeoff.image.address = takeoff_addr[j];
670
                        takeoff.image.lines = takeoff_lines[j];
671
                        delay_ms (100 - (i * 4));
672 27 zuofu
                }
673 31 zuofu
        }
674
 
675
        //max speed
676
        for (i = 0; i < 10 ; i++)
677
        {
678
                for ( j = 0; j < 8; j++)
679 27 zuofu
                {
680 31 zuofu
                        drawsprite (takeoff);
681
                        takeoff.image.address = takeoff_addr[j];
682
                        takeoff.image.lines = takeoff_lines[j];
683
                        delay_ms(40);
684 27 zuofu
                }
685 31 zuofu
        }
686
 
687
}
688
 
689
void bootup(void)
690
{
691
        char i = 0;
692
        char j = 0;
693
 
694
        Bitmap black;
695
                black.address = 0x0001C200;
696
                black.lines = 0x00F0;
697
                black.width = 0x00A0;
698
 
699
        Sprite frame;
700
                frame.image.address = 0x00376800;
701
                frame.image.lines = 160;
702
                frame.image.width = 79;
703
                frame.position.x = 0;
704
                frame.position.y = 0;
705
                frame.alpha = 0;
706
 
707
        //reset frame to center
708
        frame.position.x = 40;
709
        frame.position.y = 40;
710 27 zuofu
 
711 31 zuofu
        drawtobackground(black);
712
 
713
        delay_ms(200);
714
 
715
        //play boot movie
716
        for (i = 0; i <  21; i++)
717
        {
718
                //show 'left' frame
719
                drawsprite (frame);
720
                //show 'right' frame
721
                if (i > 18)
722
                        delay_ms(100);
723
                else
724
                        delay_ms(60);
725
                frame.image.address += 80;
726
                drawsprite (frame);
727
                if (i > 18)
728
                        delay_ms(100);
729
                else
730
                        delay_ms(60);
731
                //skip down to next two frames
732
                frame.image.address += 25520;
733
        }
734
        return;
735
}
736
 
737
void main( void )
738
{
739
        //Configure port A
740
        adcon1 = 0x07;                                                          //disable analog inputs
741
        trisa = 00000000b;
742
        //Configure port B
743
        trisb = 0x00;
744
        //Configure port C
745
        trisc = 10000000b;
746
        //Configure port D
747
        trisd = 10000000b;
748
 
749
        //Initialize port A
750
        porta = 0x00;
751
        //Initialize port B
752
        portb = 0x00;
753
        //Initialize port C
754
        portc = 0x00;
755
        //Initialize port D
756
        portc = 0x00;
757
 
758
        //wait for GPU to get ready
759
        //START OF REAL PROGRAM--------------------------------------------
760
 
761
 
762
        //char input;
763
        //setupinput();
764
        bootup();                                               //draw bootup logo
765
 
766
        //Endless loop
767
        while( true )
768
        {
769
                scene1();
770
                scene2();
771
                scene4();
772
                scene5();
773 27 zuofu
                //final halt
774 31 zuofu
                delay_s(5);
775 27 zuofu
        }
776 31 zuofu
 
777 27 zuofu
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.