forked from WartyMN/F256-FileManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay_startup.c
1206 lines (992 loc) · 79 KB
/
overlay_startup.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* overlay_startup.c
*
* Created on: Mar 11, 2024
* Author: micahbly
*
* Routines for starting up f/manager, including show splash screen(s)
* Some code here originated in sys.c and other places before being moved here
*
*/
/*****************************************************************************/
/* Includes */
/*****************************************************************************/
// project includes
#include "overlay_startup.h"
#include "app.h"
#include "comm_buffer.h"
#include "file.h"
#include "general.h"
#include "kernel.h"
#include "keyboard.h"
#include "memory.h"
#include "sys.h"
#include "text.h"
#include "strings.h"
// C includes
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
// F256 includes
#include "f256.h"
/*****************************************************************************/
/* Definitions */
/*****************************************************************************/
#define UI_BYTE_SIZE_OF_LOGO (36*45) // firebird logo size.
#define UI_BYTE_SIZE_OF_MACHINE_LOGO (63*7) // 441b = size of "F256JR" & "F256K" chars + colors (each)
#define UI_BYTE_SIZE_OF_MACHINE_LOGO_LEFT 287
#define UI_BYTE_SIZE_OF_MACHINE_LOGO_RIGHT 140
#define MACHINE_SPLASH_NUM_ROWS 7
#define MACHINE_SPLASH_START_ROW 1 //27
#define MACHINE_SPLASH_BOTTOM_ROW (MACHINE_SPLASH_START_ROW + 6)
#define MACHINE_SPLASH_TRAVEL_ROWS (MACHINE_SPLASH_START_ROW - 0)
#define MACHINE_SPLASH_H_SLIDE_DIST 17 // the number of cols that the JR or K extension needs to move in from off-screen right to be lined up behind the F256 chars.
#define MACHINE_SPLASH_WIDTH_LEFT 40
#define MACHINE_SPLASH_START_COL_LEFT 19
#define MACHINE_SPLASH_END_COL_LEFT (MACHINE_SPLASH_START_COL_LEFT + MACHINE_SPLASH_WIDTH_LEFT)
#define MACHINE_SPLASH_JR_OFFSET 5 // K is 10 chars fewer than JR, so start logo for JR machines 5 chars to left of K start spot (centered)
#define MACHINE_SPLASH_WIDTH_RIGHT 20
#define MACHINE_SPLASH_START_COL_RIGHT (MACHINE_SPLASH_END_COL_LEFT + 2)
#define MACHINE_SPLASH_END_COL_RIGHT (MACHINE_SPLASH_START_COL_RIGHT + MACHINE_SPLASH_WIDTH_RIGHT) // note: this is one too many, but I like the effect :)
#define LOGO_START_ROW 10
#define LOGO_BOTTOM_ROW (LOGO_START_ROW + 44)
#define LOGO_WIDTH 36
#define LOGO_START_COL 22
#define LOGO_END_COL (LOGO_START_COL + (LOGO_WIDTH - 1))
#define INFO_MACHINE_DISPLAY_ROW 56
#define INFO_KERNEL_DISPLAY_ROW (INFO_MACHINE_DISPLAY_ROW + 1)
#define INFO_FMANAGER_DISPLAY_ROW (INFO_KERNEL_DISPLAY_ROW + 1)
#define INFO_SUPERBASIC_DISPLAY_ROW (INFO_FMANAGER_DISPLAY_ROW + 1)
/*****************************************************************************/
/* File-scope Variables */
/*****************************************************************************/
#pragma data-name ("OVERLAY_STARTUP")
// F256JR/K colors, used for both fore- and background colors in Text mode
// in C256 & F256, these are 8 bit values; in A2560s, they are 32 bit values, and endianness matters
static uint8_t standard_text_color_lut[64] =
{
0x00, 0x00, 0x00, 0x00,
0x66, 0x66, 0x66, 0x00,
0xAA, 0x00, 0x00, 0x00,
0x00, 0xAA, 0x00, 0x00,
0xEA, 0x41, 0xC0, 0x00,
0x00, 0x48, 0x87, 0x00,
0x00, 0x9C, 0xFF, 0x00,
0xFF, 0xDB, 0x57, 0x00,
0x28, 0x3F, 0x3F, 0x00,
0x8A, 0xAA, 0xAA, 0x00,
0xFF, 0x55, 0x55, 0x00,
0x55, 0xFF, 0x55, 0x00,
0xED, 0x8D, 0xFF, 0x00,
0x00, 0x00, 0xFF, 0x00,
0x55, 0xFF, 0xFF, 0x00,
0xFF, 0xFF, 0xFF, 0x00
};
#pragma data-name ("OVERLAY_STARTUP")
static uint8_t logo_chars[UI_BYTE_SIZE_OF_LOGO] =
{
0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0xB5, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0xB5, 0xB5,0x20,0x20,0x20, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0xB5, 0x20,0x20,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0xB5,0xB5,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0xB5, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0xB5, 0xB5,0x20,0xB5,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0xB5,0xB5, 0x20,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0xB5,0x20, 0x20,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0xB5,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0xB5,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,
};
// static uint8_t logo_attrs_sparkes[UI_BYTE_SIZE_OF_LOGO] =
// {
// 0xB0,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xB0, 0xB0,0x70,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xB0, 0x90,0xB0,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0xB0,0xB0, 0x60,0xB0,0xB0,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x80,0x90,0x60, 0x90,0x60,0xA0,0xA0, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0xB0,0x60,0x30, 0x10,0x30,0x60,0xB0, 0x80,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0xB0,0x80,0x30,0x10, 0x70,0x70,0x30,0x60, 0x90,0x80,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xB0, 0x50,0x40,0x70,0x20, 0x10,0x90,0x90,0x80, 0x60,0x90,0x80,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x40, 0x40,0x40,0x40,0x40, 0x40,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0xB0,0x80, 0x80,0x70,0x90,0x80, 0x10,0x60,0x90,0x80, 0x90,0x80,0x60,0x90, 0x10,0x10,0x10,0x10, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x40,0x20,0x40, 0x10,0x10,0x10,0x10, 0x70,0x80,0x80,0xA0, 0x70,0xB0,0x80,0x10, 0x10,0x10,0x50,0x90, 0x80,0x80,0x80,0x80, 0x90,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x20, 0x10,0x40,0x80,0xB0, 0x60,0x60,0x70,0x90, 0x90,0x10,0x30,0x10, 0x10,0x10,0x40,0x50, 0x60,0xB0,0x70,0xA0, 0x60,0x80,0x80,0x70, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x70, 0x30,0x80,0xB0,0x60, 0x20,0x90,0xB0,0x60, 0x50,0x50,0x70,0x10, 0x10,0x10,0x10,0x30, 0x40,0x40,0x60,0x80, 0x60,0x90,0x10,0x80, 0x80,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0xB0,0x80, 0x80,0x80,0xB0,0x10, 0x80,0x60,0x60,0x50, 0x30,0x10,0x10,0x10, 0x10,0x10,0x10,0x90, 0x70,0xA0,0x60,0x60, 0x80,0xA0,0x80,0xA0, 0xB0,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x90,0x90, 0xA0,0x90,0xB0,0x80, 0x60,0x60,0xA0,0x90, 0xA0,0x10,0x10,0x10, 0x10,0x10,0x10,0x70, 0x60,0x80,0x80,0x20, 0x90,0x80,0x80,0x90, 0xB0,0x80,0x10,0x10, 0x10,0x10,0x10,0x80, 0x10,0x10,0x90,0x90, 0x90,0x90,0xB0,0xA0, 0x90,0xA0,0x80,0x60, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x20,0x60,0x60,0x60, 0x80,0x90,0x90,0xA0, 0xA0,0x90,0x10,0x10, 0x70,0x90,0x90,0xB0, 0x10,0x80,0x90,0xA0, 0xA0,0x90,0x90,0x80, 0x60,0x60,0x60,0x30, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x90,0x60,0x60,0x60, 0x80,0x80,0x80,0x80, 0xB0,0x80,0x90,0x10, 0xB0,0x90,0x90,0xB0, 0x10,0xA0,0x90,0x80, 0x80,0x80,0x80,0x80, 0x60,0x60,0x60,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x20,0x20,0x10,0x10, 0x70,0x90,0x90,0xA0, 0xA0,0xA0,0x90,0x80, 0x90,0x90,0x90,0xB0, 0x10,0x90,0xB0,0xA0, 0xA0,0xA0,0x80,0x70, 0x10,0x90,0x20,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x70, 0x20,0x10,0x10,0x70, 0xA0,0x60,0x80,0xA0, 0x90,0x90,0xB0,0x90, 0x90,0xA0,0x90,0xB0, 0x90,0x90,0x90,0x90, 0xA0,0x80,0x80,0x30, 0x10,0x70,0x10,0x30, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x10,0x10,0x10,0x10, 0x10,0x80,0x10,0x80, 0xB0,0x70,0x90,0x90, 0x90,0x90,0x90,0x90, 0x90,0x90,0x80,0xB0, 0x90,0x80,0x80,0x10, 0x10,0x10,0x70,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x90,0x90,0x90, 0xB0,0x90,0x90,0x90, 0x90,0x90,0xA0,0x70, 0x70,0x10,0x10,0x10, 0x10,0x10,0x90,0x20, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x90,0xB0,0xA0, 0x90,0x90,0x90,0x80, 0x90,0xB0,0xA0,0x70, 0x10,0x10,0x10,0x10, 0x10,0x10,0xA0,0x20, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x80,0x80,0x80, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0xA0,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x80,0x80,0x90, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0xA0,0x40, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x80,0x90,0x20, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x90,0x30, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0xA0, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x40,0x50,0x60,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x70,0x30, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x20, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x40,0x50,0x40,0x70, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x70,0x20,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x90,0x30,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x70, 0x60,0x80,0x40,0x70, 0x70,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x20,0x20,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x70,0x20,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x20,0x80, 0x90,0x80,0x30,0x20, 0x70,0x70,0x70,0x10, 0x10,0x10,0x10,0x10, 0x70,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x20,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x30,0x90, 0x80,0x80,0x80,0x40, 0x70,0x10,0x10,0x70, 0x20,0x10,0x10,0x10, 0x30,0x40,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x20,0x30,0x40, 0x10,0x10,0x10,0x10, 0x10,0x10,0x90,0xB0, 0x80,0x80,0x90,0x80, 0x20,0x70,0x70,0x10, 0x10,0x10,0x10,0x10, 0x40,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x30,0x20, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x70, 0x80,0x80,0x80,0x90, 0x30,0x10,0x10,0x20, 0x10,0x10,0x10,0x40, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x20, 0x20,0x30,0x70,0x10, 0x10,0x10,0x10,0x10, 0x90,0x80,0x80,0x90, 0x20,0x10,0x10,0x10, 0x10,0x10,0x30,0x20, 0x70,0x70,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x80,0x80,0x10, 0x10,0x10,0x10,0x10, 0x10,0x40,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x40, 0x20,0x10,0x70,0x10, 0x90,0x80,0x60,0x90, 0x10,0x10,0x10,0x40, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x20,0x90, 0x80,0x80,0x60,0x10, 0x30,0x20,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x70,0xA0, 0x80,0x80,0x30,0x80, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x80,0x80,0x70,0x90, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x90, 0x80,0x10,0x70,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x80,0xB0, 0x10,0x70,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x40,0xB0,0x10, 0x10,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x30,0x90,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0xA0,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x70,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x20,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10,
// };
// static uint8_t logo_attrs_circular[UI_BYTE_SIZE_OF_LOGO] =
// {
// 0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x10, 0x10,0x10,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x10, 0x10,0x10,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x10, 0x10,0x10,0x20,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x10,0x10,0x10, 0x20,0x20,0x20,0x20, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x20,0x20,0x10, 0x00,0x20,0x30,0x30, 0x30,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x30,0x20,0x20,0x00, 0x20,0x30,0x30,0x30, 0x30,0x40,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x30, 0x30,0x30,0x20,0x20, 0x00,0x30,0x40,0x40, 0x40,0x50,0x50,0x00, 0x00,0x00,0x00,0x00, 0x00,0x60,0x60,0x60, 0x60,0x60,0x60,0x60, 0x60,0x60,0x60,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x40,0x40, 0x40,0x30,0x30,0x20, 0x00,0x40,0x40,0x40, 0x50,0x50,0x50,0x60, 0x00,0x00,0x60,0x60, 0x60,0x60,0x70,0x70, 0x70,0x70,0x70,0x70, 0x70,0x60,0x60,0x60, 0x60,0x00,0x00,0x00, 0x50,0x50,0x50,0x40, 0x40,0x40,0x30,0x00, 0x00,0x40,0x40,0x50, 0x50,0x50,0x60,0x60, 0x60,0x60,0x60,0x70, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x70, 0x60,0x60,0x60,0x60, 0x60,0x50,0x50,0x50, 0x40,0x40,0x40,0x00, 0x00,0x00,0x50,0x50, 0x50,0x60,0x60,0x60, 0x60,0x70,0x70,0x70, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x70, 0x70,0x70,0x60,0x60, 0x60,0x60,0x50,0x50, 0x50,0x40,0x40,0x00, 0x00,0x00,0x00,0x50, 0x60,0x60,0x60,0x60, 0x70,0x70,0x80,0x80, 0x80,0x90,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x80,0x80, 0x80,0x70,0x70,0x60, 0x60,0x60,0x60,0x50, 0x50,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x60,0x60,0x60,0x70, 0x70,0x80,0x80,0x80, 0x90,0xA0,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x90,0x80, 0x80,0x80,0x70,0x70, 0x60,0x60,0x60,0x60, 0x50,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x60,0x60,0x70,0x70, 0x80,0x80,0x80,0x90, 0xA0,0xA0,0x00,0x00, 0x00,0x00,0x00,0xC0, 0x00,0x00,0xA0,0x90, 0x80,0x80,0x80,0x70, 0x70,0x60,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x60,0x70,0x70, 0x80,0x80,0x90,0xA0, 0xA0,0xB0,0x00,0x00, 0xC0,0xC0,0xC0,0xC0, 0x00,0xB0,0xA0,0xA0, 0x90,0x80,0x80,0x70, 0x70,0x60,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x70,0x70,0x80, 0x80,0x90,0x90,0xA0, 0xB0,0xC0,0xC0,0x00, 0xD0,0xD0,0xD0,0xD0, 0x00,0xC0,0xB0,0xA0, 0x90,0x90,0x80,0x80, 0x70,0x70,0x60,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x70,0x00,0x00, 0x80,0x90,0xA0,0xB0, 0xC0,0xC0,0xD0,0xD0, 0xD0,0xD0,0xD0,0xD0, 0x00,0xC0,0xC0,0xB0, 0xA0,0x90,0x80,0x80, 0x00,0x70,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x60,0x00,0x00,0x80, 0x90,0xA0,0xB0,0xB0, 0xC0,0xD0,0xD0,0xD0, 0xE0,0xE0,0xE0,0xD0, 0xD0,0xD0,0xC0,0xB0, 0xB0,0xA0,0x90,0x80, 0x00,0x70,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0xA0,0xB0,0xB0, 0xC0,0xD0,0xD0,0xE0, 0xE0,0xE0,0xE0,0xE0, 0xD0,0xD0,0xC0,0xB0, 0xB0,0xA0,0x90,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xC0,0xD0,0xD0,0xE0, 0xE0,0xE0,0xE0,0xE0, 0xD0,0xD0,0xC0,0xB0, 0xB0,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xC0,0xD0,0xD0,0xE0, 0xE0,0xE0,0xE0,0xE0, 0xD0,0xD0,0xC0,0xB0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xE0,0xE0,0xE0,0xD0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xD0,0xD0,0xD0,0xD0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xD0,0xD0,0xD0,0xD0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xC0,0xC0,0xC0,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x60,0x70,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0xC0,0xC0,0xC0,0xC0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x70,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x70,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0xB0, 0xB0,0xB0,0xB0,0xB0, 0xB0,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x70,0x60,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x70,0x70,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0xA0,0xB0, 0xB0,0xB0,0xB0,0xB0, 0xB0,0xA0,0xA0,0x00, 0x00,0x00,0x00,0x00, 0x70,0x70,0x60,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x60,0x70,0x70, 0x00,0x00,0x00,0x00, 0x00,0x00,0xA0,0xA0, 0xA0,0xA0,0xA0,0xA0, 0xA0,0x10,0x10,0x80, 0x80,0x00,0x00,0x00, 0x70,0x60,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x60,0x70,0x70, 0x00,0x00,0x00,0x00, 0x00,0x00,0x90,0x90, 0x90,0x90,0x90,0x90, 0x90,0x80,0x80,0x00, 0x00,0x00,0x00,0x70, 0x70,0x60,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x60,0x70, 0x70,0x00,0x00,0x00, 0x00,0x00,0x00,0x90, 0x90,0x80,0x80,0x90, 0x90,0x00,0x00,0x80, 0x00,0x00,0x70,0x70, 0x60,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x60, 0x70,0x70,0x70,0x00, 0x00,0x00,0x00,0x00, 0x80,0x80,0x80,0x80, 0x80,0x00,0x00,0x00, 0x00,0x70,0x70,0x60, 0x60,0x50,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x60,0x70,0x70,0x70, 0x00,0x00,0x00,0x00, 0x80,0x80,0x80,0x80, 0x80,0x00,0x00,0x70, 0x70,0x70,0x60,0x00, 0x00,0x00,0x50,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x60,0x60,0x70, 0x70,0x70,0x70,0x00, 0x70,0x70,0x70,0x70, 0x70,0x70,0x70,0x70, 0x60,0x00,0x00,0x00, 0x00,0x00,0x00,0x40, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x70,0x70, 0x70,0x70,0x70,0x70, 0x70,0x60,0x60,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x40,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x60,0x60, 0x60,0x60,0x60,0x60, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x40,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x50,0x50,0x50,0x50, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x50, 0x50,0x10,0x50,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x40,0x40, 0x00,0x40,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x30,0x30,0x30,0x00, 0x00,0x30,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x20,0x20,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x20,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
// };
#pragma data-name ("OVERLAY_STARTUP")
static uint8_t logo_attrs[UI_BYTE_SIZE_OF_LOGO] =
{
0x40,0x10,0x00,0x10,0x00,0xA0,0x00,0x30,0x40,0x00,0x00,0x90,0x40,0x30,0xA0,0x70,
0x00,0x50,0x00,0x00,0x00,0x00,0x70,0xD0,0xE0,0x00,0xC0,0x00,0xA0,0x80,0x00,0x40,
0xD0,0x30,0xD0,0xA0,0x10,0x10,0x00,0x00,0x90,0xA0,0x00,0x00,0x40,0x00,0x30,0x50,
0x90,0x00,0x60,0x00,0x60,0x60,0xC0,0x10,0x00,0x00,0x00,0x60,0x00,0x00,0xB0,0x50,
0x00,0x00,0xC0,0x60,0xB0,0x00,0xD0,0x10,0x90,0x10,0x10,0x80,0x00,0x00,0xC0,0x00,
0x10,0x00,0xD0,0x60,0x00,0x00,0x00,0xD0,0x00,0x10,0xE0,0x70,0xD0,0xC0,0x60,0xA0,
0x40,0x00,0x00,0x00,0x30,0xA0,0x00,0x40,0x70,0x30,0x10,0x10,0x70,0xE0,0x90,0xB0,
0x00,0xC0,0x10,0xE0,0xE0,0x00,0x90,0xE0,0x70,0x40,0x00,0x50,0x00,0x00,0xD0,0x40,
0xC0,0x00,0x00,0x00,0x80,0xC0,0x00,0x10,0x20,0xA0,0x00,0xD0,0x00,0x10,0x20,0x10,
0x20,0x10,0x20,0x90,0xE0,0x00,0x00,0xE0,0x30,0x90,0x00,0x80,0x00,0x70,0x40,0x00,
0x00,0x80,0x80,0x50,0x00,0xE0,0x50,0x00,0xB0,0x60,0x60,0xE0,0x00,0x70,0x70,0x80,
0x00,0x70,0x10,0x40,0x60,0x60,0x40,0x30,0xE0,0x60,0x70,0xC0,0x00,0xD0,0x10,0x00,
0x40,0x30,0x00,0x60,0x00,0x80,0x00,0x00,0x90,0xA0,0x90,0xA0,0x20,0x60,0x60,0xC0,
0xC0,0xE0,0x20,0x70,0x30,0xE0,0x20,0x00,0x80,0x30,0x50,0x70,0x80,0x40,0x60,0x80,
0xA0,0x00,0x80,0x00,0xE0,0xA0,0x00,0x30,0xC0,0x20,0x00,0x50,0x00,0x70,0x00,0xA0,
0x40,0x80,0xD0,0xB0,0x10,0x00,0x30,0x30,0x50,0xD0,0x20,0xB0,0xA0,0x70,0xC0,0xA0,
0x90,0x50,0x50,0x00,0x70,0xE0,0x40,0x10,0x00,0x60,0x90,0x60,0x50,0x80,0x80,0xC0,
0x90,0x60,0x50,0x00,0x30,0x00,0x80,0x00,0x70,0x00,0xA0,0x30,0x30,0xC0,0x30,0xB0,
0x00,0x40,0xD0,0xC0,0x40,0x50,0x10,0x60,0x70,0x20,0x60,0xE0,0xE0,0x60,0x80,0x40,
0x80,0x90,0x70,0xA0,0x70,0x10,0x10,0x60,0x10,0xB0,0xA0,0x50,0x20,0x70,0x20,0x40,
0x10,0x40,0x60,0x00,0xB0,0x50,0xE0,0x50,0xD0,0x50,0x60,0x60,0x60,0x10,0x90,0xD0,
0x60,0xC0,0xB0,0x80,0x80,0x70,0xD0,0x60,0x40,0x30,0x00,0x70,0x60,0xB0,0x60,0x40,
0x30,0x10,0x90,0x50,0xE0,0x20,0xA0,0x20,0x30,0x50,0x50,0x90,0x10,0x60,0x60,0x20,
0xB0,0x10,0x50,0x20,0x00,0x20,0xA0,0x30,0x10,0x00,0x70,0xC0,0xE0,0xA0,0x00,0x70,
0x70,0x20,0x20,0x60,0x20,0x90,0xE0,0x30,0x50,0x40,0x40,0x00,0x00,0x40,0x80,0xE0,
0x80,0x20,0x60,0x60,0x70,0x40,0x80,0x80,0x90,0xC0,0x50,0x00,0xD0,0x10,0xD0,0x80,
0x90,0xA0,0xC0,0x80,0x80,0x70,0x40,0x60,0x60,0xC0,0xA0,0x50,0x10,0x90,0x00,0x00,
0x10,0x20,0x90,0x50,0x60,0x60,0xB0,0x80,0x70,0x80,0x90,0x80,0x80,0x10,0xA0,0xC0,
0x70,0x00,0xD0,0x00,0x00,0x60,0xD0,0x40,0x80,0x80,0x70,0x60,0x60,0x50,0x60,0xA0,
0xA0,0x00,0x70,0x00,0x00,0x20,0x00,0xC0,0x60,0x80,0xA0,0x70,0x90,0x90,0x40,0x90,
0x90,0xA0,0x50,0x00,0x80,0x00,0xB0,0x70,0x00,0xE0,0x40,0x40,0x80,0xA0,0x80,0x50,
0xE0,0xE0,0xE0,0x10,0xB0,0x00,0x60,0x00,0x70,0x00,0x40,0x00,0x80,0x10,0x90,0x90,
0xE0,0xA0,0x90,0xC0,0xD0,0x30,0xC0,0x90,0xC0,0x70,0xC0,0xB0,0x00,0xB0,0xA0,0x20,
0x50,0x90,0x20,0x70,0x30,0xB0,0x60,0x10,0x20,0xC0,0x50,0x00,0x20,0x80,0x00,0x50,
0x40,0x30,0x70,0xA0,0x80,0xA0,0x90,0x30,0xA0,0xB0,0xC0,0x00,0xD0,0x90,0xD0,0x20,
0x40,0xB0,0x10,0xA0,0xC0,0xA0,0x60,0xC0,0x80,0x60,0x60,0x70,0x00,0x00,0x00,0x00,
0x00,0x70,0x00,0x30,0x60,0x80,0x80,0x00,0x80,0x10,0x90,0x60,0xC0,0xC0,0x80,0xD0,
0xD0,0xD0,0x90,0xA0,0x90,0x70,0xC0,0xD0,0xA0,0x40,0x80,0x80,0xB0,0xC0,0x20,0xD0,
0x50,0x20,0x40,0x90,0x70,0x00,0x00,0x60,0x60,0x50,0x90,0xD0,0x30,0xD0,0x80,0x50,
0x60,0xD0,0xD0,0xC0,0xB0,0xE0,0x50,0xC0,0xB0,0xE0,0x20,0xB0,0x70,0xA0,0x90,0x20,
0xA0,0xE0,0xD0,0x60,0xA0,0x00,0x90,0x70,0x00,0x00,0x20,0xE0,0x10,0xA0,0xD0,0x30,
0x20,0x80,0x30,0xB0,0xC0,0x40,0x30,0xE0,0x70,0x20,0x70,0xE0,0x30,0xD0,0xC0,0x10,
0x90,0x70,0x40,0x00,0x00,0xE0,0x60,0x10,0xC0,0x30,0x40,0xD0,0x00,0x00,0x10,0x70,
0x60,0x70,0xE0,0x60,0x00,0x00,0x00,0xB0,0x10,0xD0,0x70,0x90,0xE0,0x20,0x20,0x10,
0xD0,0x50,0x40,0x50,0x90,0x40,0x20,0x90,0x60,0x00,0x70,0x60,0x10,0xD0,0x10,0x60,
0xD0,0x00,0x20,0x20,0xC0,0xC0,0x00,0x10,0x00,0x00,0x30,0x00,0xC0,0xD0,0xD0,0x70,
0xA0,0x10,0xE0,0xE0,0x30,0x40,0xD0,0xB0,0xA0,0x00,0x90,0x00,0x00,0x70,0xB0,0x60,
0x20,0x80,0x80,0x00,0x00,0x00,0x00,0x60,0xA0,0x40,0xA0,0x50,0x00,0x40,0x20,0x20,
0x00,0x40,0x50,0x00,0xE0,0xB0,0xA0,0xC0,0x60,0xC0,0x00,0xA0,0x70,0x00,0xE0,0xB0,
0x10,0x60,0x70,0x40,0x00,0x70,0x60,0x60,0x00,0x50,0x40,0x60,0x90,0x70,0x60,0x00,
0xB0,0xA0,0x30,0x20,0x40,0x20,0x80,0x00,0x20,0xD0,0xD0,0xD0,0x60,0x00,0xC0,0x70,
0x30,0x90,0xA0,0x30,0xC0,0x00,0x40,0x20,0xB0,0xB0,0xA0,0x70,0x20,0x80,0x20,0x60,
0x70,0x20,0x50,0xC0,0x30,0x00,0x70,0x70,0x00,0x80,0xE0,0x00,0xC0,0xD0,0xD0,0x80,
0x00,0xE0,0x70,0x60,0xA0,0x00,0x20,0x00,0x10,0x60,0x70,0x60,0xC0,0xD0,0x00,0x20,
0x30,0xE0,0x40,0x60,0x70,0x20,0x80,0x30,0x70,0x00,0x80,0x00,0xE0,0x00,0x00,0x60,
0xD0,0xC0,0x70,0x00,0xD0,0xB0,0x80,0x00,0x90,0xB0,0x00,0xC0,0x40,0x20,0x50,0x60,
0x60,0x00,0x20,0x80,0xC0,0x50,0x30,0xC0,0xD0,0xB0,0x30,0x80,0x40,0x00,0x00,0x90,
0x00,0x10,0x90,0xA0,0xC0,0x80,0xC0,0xC0,0x00,0x40,0x60,0x00,0xD0,0x50,0x20,0xC0,
0x00,0x70,0x90,0x60,0xB0,0x50,0x00,0x00,0xB0,0x00,0x00,0x00,0x30,0x40,0xC0,0x70,
0x40,0xD0,0x00,0x00,0x00,0x00,0x00,0xB0,0x90,0xB0,0xA0,0x90,0x10,0xE0,0x40,0x00,
0x00,0x00,0x00,0x00,0x00,0x70,0x10,0x80,0x60,0x00,0x90,0xE0,0x00,0x00,0x60,0x40,
0x90,0x70,0x40,0x00,0xD0,0x00,0xB0,0x00,0x00,0x30,0xD0,0x20,0x60,0xB0,0xB0,0xD0,
0xB0,0xA0,0x20,0xD0,0x00,0x80,0x00,0x40,0x90,0x70,0x60,0x00,0x00,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x90,0xD0,0x30,0xC0,0x00,0x90,0x50,0x20,0x60,0xC0,0x90,
0xA0,0x70,0x90,0xA0,0xA0,0x80,0x20,0x70,0xC0,0x00,0xA0,0x00,0x60,0xA0,0xD0,0x00,
0x80,0x00,0xE0,0x90,0x30,0x00,0x20,0xA0,0x50,0xD0,0xE0,0x80,0xA0,0x00,0x80,0x30,
0x20,0x60,0x10,0xD0,0x40,0x10,0x10,0x50,0xC0,0x30,0x80,0x80,0xC0,0x00,0x80,0x70,
0xB0,0x40,0x50,0x60,0x00,0x80,0x50,0xB0,0x00,0x00,0x10,0x00,0x30,0x70,0x70,0x70,
0x80,0x60,0x00,0x00,0x00,0xE0,0x00,0xD0,0xB0,0x80,0x80,0x20,0x90,0x20,0x30,0x80,
0x00,0x50,0x50,0xC0,0x60,0x20,0x00,0x30,0xB0,0xB0,0xE0,0x00,0x80,0x80,0xD0,0x00,
0x80,0x80,0x00,0x60,0xB0,0x70,0x30,0x00,0x00,0xE0,0x00,0x20,0x90,0x10,0x10,0x80,
0xC0,0x40,0x80,0x00,0x00,0xC0,0x90,0x60,0x20,0x50,0xE0,0x50,0x70,0xA0,0x20,0x40,
0x70,0xB0,0xB0,0x70,0x00,0xC0,0x20,0x60,0x60,0xA0,0x20,0x70,0x00,0x00,0x30,0x00,
0x40,0x70,0x80,0x80,0x10,0xD0,0xB0,0xC0,0x60,0x20,0x20,0x00,0x00,0x90,0x50,0x30,
0xC0,0x50,0x00,0xC0,0x20,0x00,0x70,0x00,0x00,0xB0,0xD0,0xA0,0x60,0x80,0x60,0x60,
0x70,0xD0,0x50,0x50,0x70,0x90,0x70,0x30,0x40,0x70,0x20,0xD0,0xC0,0x70,0xE0,0x00,
0xB0,0xA0,0x50,0x40,0x00,0x30,0x00,0x00,0xD0,0x00,0xD0,0x70,0x50,0x80,0x00,0xE0,
0x40,0x00,0x70,0xD0,0xB0,0x10,0x70,0xC0,0xE0,0x70,0xB0,0x20,0xC0,0xA0,0xB0,0x00,
0x30,0x50,0x10,0xB0,0x00,0xB0,0x00,0x00,0x30,0x60,0x00,0x30,0x90,0x00,0x70,0x70,
0x70,0x00,0x80,0x50,0x20,0x70,0x40,0x00,0xC0,0x70,0x70,0x30,0xD0,0x60,0x60,0x40,
0x10,0xD0,0x60,0xA0,0x80,0xA0,0x50,0x80,0x00,0xB0,0x00,0x00,0x40,0x00,0xC0,0x90,
0x40,0xA0,0x00,0x90,0x60,0xB0,0x80,0x70,0xB0,0xD0,0xB0,0x90,0x70,0x00,0x90,0x10,
0x50,0xD0,0x50,0x30,0x90,0xA0,0x00,0xB0,0x10,0x00,0x30,0x20,0x40,0x20,0x00,0xD0,
0x90,0x00,0xD0,0xC0,0x00,0x40,0x90,0xC0,0xC0,0x20,0x00,0x20,0x00,0x80,0xA0,0xA0,
0x40,0xE0,0x70,0x50,0x50,0x30,0x50,0x00,0x10,0x70,0x10,0xA0,0x30,0x00,0x90,0x70,
0x30,0x00,0x00,0x00,0x00,0x10,0x00,0xC0,0x60,0xB0,0x50,0xA0,0xE0,0x40,0x40,0x00,
0x80,0x40,0x40,0x30,0x00,0x20,0xA0,0x60,0x00,0x80,0x20,0x40,0x00,0x40,0x30,0x00,
0x60,0xE0,0x00,0x50,0x90,0x60,0x90,0x80,0x80,0xB0,0xD0,0x70,0x70,0xE0,0x00,0x60,
0x70,0x50,0x40,0x40,0x00,0x00,0x00,0x00,0x30,0x40,0x50,0x80,0x30,0x30,0x10,0x10,
0x90,0x00,0xC0,0x50,0x70,0x10,0xD0,0x00,0xE0,0x10,0xB0,0x00,0x70,0x90,0x00,0x40,
0x10,0xB0,0x60,0x30,0x00,0xB0,0x00,0xE0,0x00,0x00,0x60,0x70,0x20,0x20,0xE0,0x50,
0x00,0x90,0x80,0xC0,0x60,0x30,0x00,0x00,0x00,0x00,0x80,0x90,0x00,0x00,0xC0,0xC0,
0x50,0x10,0x80,0x50,0x10,0x30,0xD0,0xB0,0x50,0x00,0x60,0xB0,0x00,0x00,0x30,0x90,
0x20,0x30,0xC0,0x00,0x00,0xD0,0x00,0x50,0x70,0x50,0x00,0xB0,0x60,0xB0,0x60,0x00,
0xB0,0x00,0x70,0xC0,0x40,0x80,0x00,0x20,0xD0,0x50,0x50,0x00,0xD0,0x00,0x00,0x50,
0x00,0x90,0xD0,0xD0,0x10,0xB0,0x20,0x00,0xE0,0x00,0x50,0x00,0xD0,0x60,0x50,0x20,
0x60,0x00,0x90,0xC0,0xB0,0x00,0xC0,0xE0,0x00,0x30,0xD0,0x50,0xD0,0x80,0x00,0x00,
0x00,0x40,0x80,0x30,0x40,0x00,0x90,0x40,0xB0,0x60,0x00,0x00,0xB0,0x40,0xE0,0x10,
0x00,0x80,0x70,0x10,0xE0,0x00,0xB0,0x60,0xE0,0x00,0x50,0xE0,0x70,0x00,0x90,0x00,
0x00,0x80,0xB0,0x30,0x40,0x80,0x00,0x00,0x00,0x00,0xA0,0x00,0x10,0x40,0x70,0x00,
0x00,0x00,0x10,0xD0,0x00,0x30,0x20,0x00,0xA0,0xB0,0x30,0x50,0x20,0x00,0x00,0xE0,
0xC0,0x50,0x00,0xB0,
};
#pragma data-name ("OVERLAY_STARTUP")
// F256JR header line eraser: 1 rows x 63 chars wroth of black on black attributes
static uint8_t machine_splash_black_line[63] =
{
0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,
};
#pragma data-name ("OVERLAY_STARTUP")
// F256 (only) chars. 7 rows x 41 chars=284b. 08=nearly solid block
static uint8_t machine_splash_chars_left[UI_BYTE_SIZE_OF_MACHINE_LOGO_LEFT] =
{
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,
0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,
0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,
0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,
0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,
0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,
};
// F256 (only) colors. 7 rows x 41 chars=284b.
static uint8_t machine_splash_attrs_left[UI_BYTE_SIZE_OF_MACHINE_LOGO_LEFT] =
{
0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x00,0x00,0x00,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x00,0x00,0x00,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x00,0x00,0x00,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x0D,0x00,
0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x06,0x06,
0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0E,0x00,0x00,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,0x00,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,0x00,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,
0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x00,0x00,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x07,0x07,
0x0A,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0A,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0A,0x0A,0x00,0x00,0x00,0x00,0x00,0x0A,0x0A,0x00,0x00,0x0A,0x0A,0x00,0x00,0x00,0x00,0x00,0x0A,0x0A,
0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,
};
// JR (only) chars. 7 rows x 20 chars=140b. FC=heart
static uint8_t machine_splash_chars_jr[UI_BYTE_SIZE_OF_MACHINE_LOGO_RIGHT] =
{
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0x20,
0xFC,0xFC,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,
0xFC,0xFC,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0xFC,0xFC,0x20,0x20,0x20,0x20,0xFC,0xFC,0x20,
0x20,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0x20,0x20,0x20,0xFC,0xFC,0x20,0x20,0x20,0x20,0x20,0xFC,0xFC,
};
// K (only) chars. 7 rows x 20 chars=140b. B4=circle
static uint8_t machine_splash_chars_k[UI_BYTE_SIZE_OF_MACHINE_LOGO_RIGHT] =
{
0xB4,0xB4,0x20,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0xB4,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xB4,0xB4,0x20,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
};
// JR (only) colors: 7 rows x 20 chars=140b.
static uint8_t machine_splash_attrs_jr[UI_BYTE_SIZE_OF_MACHINE_LOGO_RIGHT] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0x00,
0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,
0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,
0x00,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,
};
// K (only) colors. 7 rows x 20 chars=140b. B4=circle
static uint8_t machine_splash_attrs_k[UI_BYTE_SIZE_OF_MACHINE_LOGO_RIGHT] =
{
0xF0,0xF0,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0xF0,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
// // F256JR header chars. 7 rows x 63 chars=441b. 08=nearly solid block, FC=heart
// static uint8_t machine_splash_chars_jr[UI_BYTE_SIZE_OF_MACHINE_LOGO] =
// {
// 0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0x20,
// 0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,
// 0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,
// 0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0x20,
// 0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,
// 0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0xF6,0xF6,0x20,
// 0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0xF6,0x20,0x20,0x20,0xF6,0xF6,0x20,0x20,0x20,0x20,0x20,0xF6,0xF6,
// };
//
// #pragma data-name ("OVERLAY_STARTUP")
//
// // F256K header. 7 rows x 63 chars
// static uint8_t machine_splash_chars_k[UI_BYTE_SIZE_OF_MACHINE_LOGO] =
// {
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0xB4,0xB4,0xB4,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0xB4,0xB4,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
// 0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0x20,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0xB4,0xB4,0x20,0x20,0x20,0x20,0x20,0x20,
// };
//
// #pragma data-name ("OVERLAY_STARTUP")
//
// // F256JR and K colors:.7 rows x 63 chars
// static uint8_t machine_splash_attrs[UI_BYTE_SIZE_OF_MACHINE_LOGO] =
// {
// 13,13,13,13,13,13,13,13,0x00,0x00,0x00,13,13,13,13,13,13,13,0x00,0x00,0x00,13,13,13,13,13,13,13,13,13,0x00,0x00,0x00,13,13,13,13,13,13,13,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0x00,
// 6,6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,6,6,0x00,0x00,0x00,0x00,0x00,6,6,0x00,0x00,6,6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,6,6,0x00,0x00,0x00,0x00,0x00,6,6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,
// 14,14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,14,14,0x00,0x00,14,14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,14,14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,
// 3,3,3,3,3,3,0x00,0x00,0x00,0x00,0x00,3,3,3,3,3,3,3,0x00,0x00,0x00,3,3,3,3,3,3,3,3,0x00,0x00,0x00,3,3,3,3,3,3,3,3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0x00,
// 7,7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,7,7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,7,7,0x00,0x00,7,7,0x00,0x00,0x00,0x00,0x00,7,7,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,
// 10,10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,10,10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,10,10,0x00,0x00,0x00,0x00,0x00,10,10,0x00,0x00,10,10,0x00,0x00,0x00,0x00,0x00,10,10,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0xD0,0xD0,0x00,
// 4,4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,4,4,4,4,4,4,4,4,4,0x00,0x00,0x00,4,4,4,4,4,4,4,0x00,0x00,0x00,0x00,4,4,4,4,4,4,4,0x00,0x00,0x00,0x00,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0xD0,0x00,0x00,0x00,0xD0,0xD0,0x00,0x00,0x00,0x00,0x00,0xD0,0xD0,
// };
#pragma data-name ("OVERLAY_STARTUP")
// F256JR/K colors, used for both fore- and background colors in Text mode
// in C256 & F256, these are 8 bit values; in A2560s, they are 32 bit values, and endianness matters
static uint8_t logo_color_lut[64] =
{
0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0x00,
0x00,0x00,0x70,0x00,
0x00,0x00,0x80,0x00,
0x00,0x00,0xA0,0x00,
0x00,0x00,0xB0,0x00,
0x00,0x00,0xC0,0x00,
0x00,0x00,0xE0,0x00,
0x00,0x00,0xFF,0x00,
0x00,0x22,0xFF,0x00,
0x00,0x44,0xFF,0x00,
0x00,0x66,0xFF,0x00,
0x00,0x99,0xFF,0x00,
0x00,0xCC,0xFF,0x00,
0x00,0xFF,0xFF,0x00,
0xFF,0xFF,0xFF,0x00,
// v3 palette: dark red to bright red to bright yellow
// 0x00,0x00,0x00,0x00,
//
// 0x00,0x00,0x20,0x00,
// 0x00,0x00,0x40,0x00,
// 0x00,0x00,0x60,0x00,
// 0x00,0x00,0x80,0x00,
// 0x00,0x00,0xA0,0x00,
// 0x00,0x00,0xC0,0x00,
// 0x00,0x00,0xE0,0x00,
// 0x00,0x00,0xFF,0x00,
// 0x00,0x22,0xFF,0x00,
// 0x00,0x44,0xFF,0x00,
// 0x00,0x66,0xFF,0x00,
// 0x00,0x99,0xFF,0x00,
// 0x00,0xCC,0xFF,0x00,
// 0x00,0xFF,0xFF,0x00,
//
// 0xFF,0xFF,0xFF,0x00,
// v2 palette: in order, but pretty subdued colors. top color bright yellow
// 0x00,0x00,0x00,0x00,
// 0x00,0x03,0x42,0x00,
// 0x0F,0x24,0x41,0x00,
// 0x1C,0x30,0x57,0x00,
// 0x15,0x32,0x7C,0x00,
// 0x1D,0x4F,0x8B,0x00,
// 0x19,0x3C,0xA2,0x00,
// 0x15,0x2B,0xC6,0x00,
// 0x29,0x62,0xA9,0x00,
// 0x29,0x89,0xC6,0x00,
// 0x3B,0x96,0xED,0x00,
// 0x69,0x69,0xF5,0x00,
// 0x46,0x6B,0xF9,0x00,
// 0x4C,0x57,0xFD,0x00,
// 0x1A,0x38,0xFC,0x00,
// 0x38,0xFC,0xFF,0x00,
// v1 palette:
// 0x00,0x00,0x00,0x00,
// 0x00,0x03,0x42,0x00,
// 0x15,0x32,0x7C,0x00,
// 0x19,0x3C,0xA2,0x00,
// 0x15,0x2B,0xC6,0x00,
// 0x1A,0x38,0xFC,0x00,
// 0x28,0x56,0xED,0x00,
// 0x0F,0x24,0x41,0x00,
// 0x18,0x45,0x56,0x00,
// 0x1D,0x4F,0x8B,0x00,
// 0x29,0x62,0xA9,0x00,
// 0x29,0x89,0xC6,0x00,
// 0x2C,0x72,0xF1,0x00,
// 0x3B,0x96,0xED,0x00,
// 0x2E,0xAE,0xF4,0x00,
// 0x5F,0xC9,0xEA,0x00,
};
/*****************************************************************************/
/* Global Variables */
/*****************************************************************************/
static System system_storage;
System* global_system = &system_storage;
extern char* global_named_app_basic;
extern bool global_started_from_flash; // tracks whether app started from flash or from disk
extern char* global_string[NUM_STRINGS];
extern char* global_string_buff1;
extern char* global_string_buff2;
extern uint8_t zp_bank_num;
extern uint8_t io_bank_value_kernel; // stores value for the physical bank pointing to C000-DFFF whenever we change it, so we can restore it.
#pragma zpsym ("zp_bank_num");
/*****************************************************************************/
/* Private Function Prototypes */
/*****************************************************************************/
// enable or disable the gamma correction
void Sys_SetGammaMode(bool enable_it);
// display machine info: F256JR or F256K
void Startup_ShowMachineSplash(void);
// Set logo palette, display Foenix logo on screen, display basic about info
// does NOT clear the screen first
void Startup_ShowFoenixLogo(void);
// display information about f/manager, the machine, and the MicroKernel
void Startup_ShowAboutInfo(void);
/*****************************************************************************/
/* Private Function Definitions */
/*****************************************************************************/
// enable or disable the gamma correction
void Sys_SetGammaMode(bool enable_it)
{
uint8_t the_gamma_mode_bits = R8(VICKY_GAMMA_CTRL_REG);
uint8_t new_mode_flag;
// LOGIC:
// both C256s and A2560s have a gamma correction mode
// It needs to be hardware enabled by turning DIP switch 7 on the motherboard to ON (I believe)
// bit 5 (0x20) of the video mode byte in vicky master control reflects the DIP switch setting, but doesn't change anything if you write to it
// byte 3 of the vicky master control appears to be dedicated to Gamma correction, but not all bits are documented. Stay away from all but the first 2!
// gamma correction can be activated by setting the first and 2nd bits of byte 3
if (enable_it)
{
new_mode_flag = 0xFF;
}
else
{
new_mode_flag = 0x00;
}
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
//DEBUG_OUT(("%s %d: vicky byte 3 before gamma change = %x", __func__, __LINE__, the_gamma_mode_bits));
the_gamma_mode_bits |= (GAMMA_MODE_ONOFF_BITS & new_mode_flag);
R8(VICKY_GAMMA_CTRL_REG) = the_gamma_mode_bits;
//DEBUG_OUT(("%s %d: vicky byte 3 after gamma change = %x, %x", __func__, __LINE__, the_gamma_mode_bits, R8(VICKY_GAMMA_CTRL_REG)));
//DEBUG_OUT(("%s %d: wrote to %x to register at %p", __func__, __LINE__, the_gamma_mode_bits, P8(VICKY_GAMMA_CTRL_REG)));
Sys_RestoreIOPage();
}
// display machine info: F256JR or F256K
void Startup_ShowMachineSplash(void)
{
uint8_t* machine_splash_chars_right;
uint8_t* machine_splash_attrs_right;
uint8_t* this_splash_char;
uint8_t h_scooch_dist;
uint8_t left_x1;
uint8_t left_x2;
uint8_t right_x1;
uint8_t right_x2;
int8_t i;
uint16_t k;
if (global_system->model_number_ == MACHINE_F256_JR)
{
machine_splash_chars_right = &machine_splash_chars_jr[0];
machine_splash_attrs_right = &machine_splash_attrs_jr[0];
h_scooch_dist = 12;
}
else if (global_system->model_number_ == MACHINE_F256K)
{
machine_splash_chars_right = &machine_splash_chars_k[0];
machine_splash_attrs_right = &machine_splash_attrs_k[0];
h_scooch_dist = 05;
}
else
{
machine_splash_chars_right = &machine_splash_chars_jr[0];
machine_splash_attrs_right = &machine_splash_attrs_jr[0];
}
// show core machine logo ("F256" part without K or J)
left_x1 = MACHINE_SPLASH_START_COL_LEFT;
left_x2 = MACHINE_SPLASH_END_COL_LEFT;
Text_CopyMemBoxLinearBuffer(machine_splash_chars_left, left_x1, MACHINE_SPLASH_START_ROW, left_x2, MACHINE_SPLASH_BOTTOM_ROW, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
Text_CopyMemBoxLinearBuffer(machine_splash_attrs_left, left_x1, MACHINE_SPLASH_START_ROW, left_x2, MACHINE_SPLASH_BOTTOM_ROW, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
General_DelayTicks(14000); // we want to show the thinnest version for a longer period of time
// give user a chance to drop into BASIC immediately
if (Keyboard_GetKeyIfPressed() == 'b')
{
Kernal_RunNamed(global_named_app_basic, 5);
}
// rotate through a series of increasingly fat chars for a reverse louver effect
for (i=0; i < 6; i++)
{
General_DelayTicks(700);
this_splash_char = machine_splash_chars_left;
for (k=0; k < UI_BYTE_SIZE_OF_MACHINE_LOGO_LEFT; k++)
{
*this_splash_char = *this_splash_char + 1;
++this_splash_char;
}
Text_CopyMemBoxLinearBuffer(machine_splash_chars_left, left_x1, MACHINE_SPLASH_START_ROW, left_x2, MACHINE_SPLASH_BOTTOM_ROW, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
}
// give user a chance to drop into BASIC immediately
if (Keyboard_GetKeyIfPressed() == 'b')
{
Kernal_RunNamed(global_named_app_basic, 5);
}
General_DelayTicks(600);
// // bring the logo up from center of screen to top of screen, out of the way of the foenix logo
// for (i=0; i < MACHINE_SPLASH_TRAVEL_ROWS; i++)
// {
// Text_CopyMemBoxLinearBuffer((uint8_t*)&machine_splash_black_line, left_x1, (MACHINE_SPLASH_START_ROW+7)-i, left_x2, (MACHINE_SPLASH_START_ROW+7)-i, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
// Text_CopyMemBoxLinearBuffer(machine_splash_chars_left, left_x1, MACHINE_SPLASH_START_ROW-i, left_x2, MACHINE_SPLASH_BOTTOM_ROW-i, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
// Text_CopyMemBoxLinearBuffer(machine_splash_attrs_left, left_x1, MACHINE_SPLASH_START_ROW-i, left_x2, MACHINE_SPLASH_BOTTOM_ROW-i, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
//
// General_DelayTicks(200);
// }
//
// General_DelayTicks(900);
// slide in the JR or K part of logo, from right
right_x1 = 79;
right_x2 = right_x1 + MACHINE_SPLASH_WIDTH_RIGHT - 1;
for (i=0; i < MACHINE_SPLASH_H_SLIDE_DIST; i++)
{
Text_CopyMemBoxLinearBuffer(machine_splash_chars_right,
right_x1, 1,
right_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
Text_CopyMemBoxLinearBuffer(machine_splash_attrs_right,
right_x1, 1,
right_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
Text_CopyMemBoxLinearBuffer((uint8_t*)&machine_splash_black_line,
right_x2+1, 1,
right_x2+1, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
--right_x1;
--right_x2;
General_DelayTicks(225);
}
// slide the main logo and machine extension to the left to recenter.
for (i=0; i < h_scooch_dist; i++)
{
Text_CopyMemBoxLinearBuffer(machine_splash_chars_left,
left_x1, 1,
left_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
Text_CopyMemBoxLinearBuffer(machine_splash_attrs_left,
left_x1, 1,
left_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
Text_CopyMemBoxLinearBuffer((uint8_t*)&machine_splash_black_line,
left_x2+1, 1,
left_x2+1, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
Text_CopyMemBoxLinearBuffer(machine_splash_chars_right,
right_x1, 1,
right_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
Text_CopyMemBoxLinearBuffer(machine_splash_attrs_right,
right_x1, 1,
right_x2, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
Text_CopyMemBoxLinearBuffer((uint8_t*)&machine_splash_black_line,
right_x2+1, 1,
right_x2+1, 7,
SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
--left_x1;
--left_x2;
--right_x1;
--right_x2;
General_DelayTicks(300);
}
}
// Set logo palette, display Foenix logo on screen, display basic about info
// does NOT clear the screen first
void Startup_ShowFoenixLogo(void)
{
uint8_t* color[15]; // pointers to 4 bytes that make up each of the 16 colors, but leaving out 0 (black)
uint8_t* temp_color;
uint8_t* vicky_lut_addr;
int8_t i;
uint8_t j;
uint8_t* logo_color;
uint8_t color_loops;
bool keep_going = true;
// set up array of pointers to each color (4 bytes) in our stored lut
logo_color = &logo_color_lut[0];
for (i = 0; i < 15; i++)
{
logo_color += 4;
color[i] = logo_color;
}
// load in our custom logo colors to the text color luts
// Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
// memcpy((uint8_t*)(TEXT_BACK_LUT), &logo_color_lut, 64);
// memcpy((uint8_t*)(TEXT_FORE_LUT), &logo_color_lut, 64);
// Sys_RestoreIOPage();
// copy in chars and attrs for the logo
// logo is 36*45, so draw it at 22, 7
Text_CopyMemBoxLinearBuffer((uint8_t*)&logo_chars, LOGO_START_COL, LOGO_START_ROW, LOGO_END_COL, LOGO_BOTTOM_ROW, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_CHAR);
Text_CopyMemBoxLinearBuffer((uint8_t*)&logo_attrs, LOGO_START_COL, LOGO_START_ROW, LOGO_END_COL, LOGO_BOTTOM_ROW, SCREEN_COPY_TO_SCREEN, SCREEN_FOR_TEXT_ATTR);
// show about info
Startup_ShowAboutInfo();
//vicky_lut_addr = (uint8_t*)(TEXT_FORE_LUT + 60); // start at highest color and go down to color 1 (color 0 already loaded)
// now rotate the colors around a bit for a fun effect
// start at 2nd highest color (highest is reserved for text, so it doesn't flash)
color_loops = 0;
while (color_loops < 9 && keep_going == true)
{
++color_loops;
for (j = 0; j < 240; j++)
{
temp_color = color[0];
for (i = 1; i < 14; i++)
{
color[i-1] = color[i];
}
color[13] = temp_color;
// update actual lut
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
vicky_lut_addr = (uint8_t*)(TEXT_FORE_LUT + 4); // skip over black
for (i = 0; i < 14; i++)
{
memcpy(vicky_lut_addr, color[i], 4);
vicky_lut_addr += 4;
}
Sys_RestoreIOPage();
//General_DelayTicks(120-j/2); // accelerate speed
General_DelayTicks(4);
if (Kernal_AnyKeyEvent())
{
keep_going = false;
break;
}
}
}
// reset colors (this is kind of clumsy, but lazy and it works)
Sys_AutoConfigure();
}
// display information about f/manager, the machine, and the MicroKernel
void Startup_ShowAboutInfo(void)
{
char year[2];
char month[2];
char day[2];
char build[2];
char* buffer = (char*)0xE008;
// LOGIC:
// Unless f/manager loaded from flash, we don't want to bother user with too much machine/kernel info.
// idea being that on machine power up, we want user to see a splash screen as if it was really the machine showing the results, not just some random app
// in all situations we want to show app name/about info
if (global_started_from_flash == true)
{
// show machine information
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
sprintf(global_string_buff1, General_GetString(ID_STR_ABOUT_HARDWARE_DETAILS), CH_COPYRIGHT, R8(MACHINE_FPGA_NUM_HI), R8(MACHINE_FPGA_NUM_LOW), R8(MACHINE_FPGA_VER_HI), R8(MACHINE_FPGA_VER_LOW), R8(MACHINE_FPGA_SUBV_HI), R8(MACHINE_FPGA_SUBV_LOW), R8(MACHINE_PCB_MAJOR), R8(MACHINE_PCB_MINOR), R8(MACHINE_PCB_ID_0), R8(MACHINE_PCB_ID_1));
Sys_RestoreIOPage();
Text_DrawStringAtXY(0, INFO_MACHINE_DISPLAY_ROW, global_string_buff1, 15, COLOR_BLACK);
// show MicroKernel information
// data is (11 bytes), starting 8 bytes into 3f.bin, which happens to be mapped in to $E000 all the time.
// format is MM/DD/YY, space, build #. eg: "01/02/24 21"
//General_Strlcpy(global_string_buff1, (char*)0xE008, 12);
month[0] = *buffer++;
month[1] = *buffer++;
buffer++; // skip the slash
day[0] = *buffer++;
day[1] = *buffer++;
buffer++; // skip the slash
year[0] = *buffer++;
year[1] = *buffer++;
buffer++; // skip the space
build[0] = *buffer++;
build[1] = *buffer++;
strcpy(global_string_buff2, General_GetString(ID_STR_ABOUT_MICROKERNEL));
sprintf(global_string_buff1, global_string_buff2,
CH_COPYRIGHT, year[0], year[1], build[0], build[1], year[0], year[1], month[0], month[1], day[0], day[1]
);
Text_DrawStringAtXY((80-strlen(global_string_buff1))/2, INFO_KERNEL_DISPLAY_ROW, global_string_buff1, 15, COLOR_BLACK);
// show SuperBASIC info
sprintf(global_string_buff1, General_GetString(ID_STR_ABOUT_SUPERBASIC), CH_COPYRIGHT);
Text_DrawStringAtXY((80-strlen(global_string_buff1))/2, INFO_SUPERBASIC_DISPLAY_ROW, global_string_buff1, 15, COLOR_BLACK);
}
// show app name, version, and credit
sprintf(global_string_buff1, General_GetString(ID_STR_ABOUT_FMANAGER), CH_COPYRIGHT, MAJOR_VERSION, MINOR_VERSION, UPDATE_VERSION);
Text_DrawStringAtXY((80-strlen(global_string_buff1))/2, INFO_FMANAGER_DISPLAY_ROW, global_string_buff1, 15, COLOR_BLACK);
}
/*****************************************************************************/
/* Public Function Definitions */
/*****************************************************************************/
//! Initialize the system (primary entry point for all system initialization activity)
//! Starts up the memory manager, creates the global system object, runs autoconfigure to check the system hardware, loads system and application fonts, allocates a bitmap for the screen.
bool Sys_InitSystem(void)
{
// open log file, if on real hardware, and built with calypsi, and debugging flags were passed
#if defined LOG_LEVEL_1 || defined LOG_LEVEL_2 || defined LOG_LEVEL_3 || defined LOG_LEVEL_4 || defined LOG_LEVEL_5
if (General_LogInitialize() == false)
{
printf("%s %d: failed to open log file for writing \n", __func__, __LINE__);
}
#endif
//DEBUG_OUT(("%s %d: Initializing System...", __func__, __LINE__));
// check what kind of hardware the system is running on
// LOGIC: we need to know how many screens it has before allocating screen objects
if (Sys_AutoDetectMachine() == false)
{
LOG_ERR(("%s %d: Detected machine hardware is incompatible with this software", __func__ , __LINE__));
return false;
}
//DEBUG_OUT(("%s %d: Hardware detected. Running Autoconfigure...", __func__, __LINE__));
if (Sys_AutoConfigure() == false)
{
LOG_ERR(("%s %d: Auto configure failed", __func__, __LINE__));
return false;
}
// determine if f/manager started up from flash or from disk.
if ((R8(0x0200) != '-' && R8(0x0202) != 'f') && (R8(0x0200) != '/' && R8(0x0203) != 'f'))
{
// we started from disk if $200 has pexec '-' in it on f/manager startup.
// you can also start from DOS with "/- fm", and then / ends up in 200 slot.
// if from flash, $200 would be 'f', and $201 would be 'm', and $202 would be 0.
global_started_from_flash = true;
}
else
{
global_started_from_flash = false;
}
// clear 0x0200, 0201, 0202, and 0203 to make next start after reset more accurate
// (if started from flash, then from disk, then reset, the "- fm" would still be in memory otherwise)
memset((char*)0x0200, 0, 4);
// Enable mouse pointer -- no idea if this works, f68 emulator doesn't support mouse yet.
//R32(VICKYB_MOUSE_CTRL_A2560K) = 1;
// set interrupt handlers
// ps2_init();
// global_old_keyboard_interrupt = sys_int_register(INT_KBD_PS2, &Sys_InterruptKeyboard);
// global_old_keyboard_interrupt = sys_int_register(INT_KBD_A2560K, &Sys_InterruptKeyboard);
// global_old_mouse_interrupt = sys_int_register(INT_MOUSE, &Sys_InterruptKeyboard);
//DEBUG_OUT(("%s %d: System initialization complete.", __func__, __LINE__));
return true;
}
//! Find out what kind of machine the software is running on, and determine # of screens available
//! @param the_system: valid pointer to system object
//! @return Returns false if the machine is known to be incompatible with this software.
bool Sys_AutoDetectMachine(void)
{
uint8_t the_machine_id;
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
the_machine_id = (R8(MACHINE_ID_REGISTER) & MACHINE_MODEL_MASK);
Sys_RestoreIOPage();
global_system->model_number_ = the_machine_id;
// DEBUG_OUT(("%s %d: global_system->model_number_=%u", __func__, __LINE__, global_system->model_number_));
return true;
}
//! Find out what kind of machine the software is running on, and configure the passed screen accordingly
//! Configures screen settings, RAM addresses, etc. based on known info about machine types
//! Configures screen width, height, total text rows and cols, and visible text rows and cols by checking hardware
//! @param the_system: valid pointer to system object
//! @return Returns false if the machine is known to be incompatible with this software.
bool Sys_AutoConfigure(void)
{
// sprintf(global_string_buff1, "global_system->model_number_=%u", global_system->model_number_);
// Buffer_NewMessage(global_string_buff1);
// General_DelayTicks(40000);
if (global_system->model_number_ == MACHINE_F256_JR || global_system->model_number_ == MACHINE_F256K)
{
//DEBUG_OUT(("%s %d: Configuring screens for an F256jr (1 screen)", __func__, __LINE__));
// global_system->screen_[ID_CHANNEL_A]->vicky_ = P32(VICKY_C256);
// global_system->screen_[ID_CHANNEL_A]->text_ram_ = TEXT_RAM_C256;
// global_system->screen_[ID_CHANNEL_A]->text_attr_ram_ = TEXT_ATTR_C256;
// global_system->screen_[ID_CHANNEL_A]->text_font_ram_ = FONT_MEMORY_BANK_C256;
// global_system->screen_[ID_CHANNEL_A]->text_color_fore_ram_ = (char*)TEXT_FORE_LUT_C256;
// global_system->screen_[ID_CHANNEL_A]->text_color_back_ram_ = (char*)TEXT_BACK_LUT_C256;
// use auto configure to set resolution, text cols, margins, etc
if (Sys_DetectScreenSize() == false)
{
LOG_ERR(("%s %d: Unable to auto-configure screen resolution", __func__, __LINE__));
return false;
}
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
// set standard color LUTs for text mode
memcpy((uint8_t*)(TEXT_FORE_LUT), &standard_text_color_lut, 64);
memcpy((uint8_t*)(TEXT_BACK_LUT), &standard_text_color_lut, 64);
Sys_RestoreIOPage();
// DEBUG_OUT(("%s %d: This screen has %i x %i text (%i x %i visible)", __func__, __LINE__,
// global_system->text_mem_cols_,
// global_system->text_mem_rows_,
// global_system->text_cols_vis_,
// global_system->text_rows_vis_
// ));
}
else
{
//DEBUG_OUT(("%s %d: this system %i not supported!", __func__, __LINE__, global_system->model_number_));
return false;
}
// always enable gamma correction
Sys_SetGammaMode(true);
return true;
}
//! Detect the current screen mode/resolution, and set # of columns, rows, H pixels, V pixels, accordingly
bool Sys_DetectScreenSize(void)
{
//uint8_t new_mode;
uint8_t the_video_mode_bits;
uint8_t border_x_cols;
uint8_t border_y_cols;
int16_t border_x_pixels;
int16_t border_y_pixels;
// detect the video mode and set resolution based on it
Sys_SwapIOPage(VICKY_IO_PAGE_REGISTERS);
the_video_mode_bits = R8(VICKY_MASTER_CTRL_REG_H);
//DEBUG_OUT(("%s %d: 8bit vicky ptr 2nd byte=%p, video mode bits=%x", __func__, __LINE__, vicky_8bit_ptr, the_video_mode_bits));
// F256JR has 1 channel with 2 video modes, 70hz=640x400 (graphics doubled to 320x200) and 60hz=640x480
if (the_video_mode_bits & VIDEO_MODE_FREQ_BIT)
{
//new_mode = RES_320X200;
global_system->text_mem_rows_ = TEXT_ROW_COUNT_70HZ; // 2 options in JR. the_screen->height_ / TEXT_FONT_HEIGHT;
}
else
{
//new_mode = RES_320X240;
global_system->text_mem_rows_ = TEXT_ROW_COUNT_60HZ; // 2 options in JR. the_screen->height_ / TEXT_FONT_HEIGHT;
}
// we don't really care about pixels in this app...
// switch (new_mode)
// {
// case RES_320X200:
// the_screen->width_ = 320;
// the_screen->height_ = 200;
// DEBUG_OUT(("%s %d: set to RES_320X200", __func__, __LINE__));
// break;
//
// case RES_320X240:
// the_screen->width_ = 320;
// the_screen->height_ = 240;
// DEBUG_OUT(("%s %d: set to RES_320X200", __func__, __LINE__));