megadrive_test2

view src/dbgfont.h @ 12:54caa2b214ca

TMSS code
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 26 Dec 2018 04:39:09 +0200
parents
children
line source
1 #ifndef DBGFONT_H_
2 #define DBGFONT_H_
4 #define ROM __attribute__((section(".rodata")))
6 #define FONT_FIRST 32
7 #define FONT_COUNT (sizeof font / sizeof *font)
9 static unsigned long font[][8] ROM = {
10 {
11 0x00000000,
12 0x00000000,
13 0x00000000,
14 0x00000000,
15 0x00000000,
16 0x00000000,
17 0x00000000,
18 0x00000000
19 }, {
20 0x00ff0000,
21 0x0ffff000,
22 0x0ffff000,
23 0x00ff0000,
24 0x00ff0000,
25 0x00000000,
26 0x00ff0000,
27 0x00000000
28 }, {
29 0x0ff0ff00,
30 0x0ff0ff00,
31 0x0ff0ff00,
32 0x00000000,
33 0x00000000,
34 0x00000000,
35 0x00000000,
36 0x00000000
37 }, {
38 0x0ff0ff00,
39 0x0ff0ff00,
40 0xfffffff0,
41 0x0ff0ff00,
42 0xfffffff0,
43 0x0ff0ff00,
44 0x0ff0ff00,
45 0x00000000
46 }, {
47 0x00ff0000,
48 0x0fffff00,
49 0xff000000,
50 0x0ffff000,
51 0x0000ff00,
52 0xfffff000,
53 0x00ff0000,
54 0x00000000
55 }, {
56 0x00000000,
57 0xff000ff0,
58 0xff00ff00,
59 0x000ff000,
60 0x00ff0000,
61 0x0ff00ff0,
62 0xff000ff0,
63 0x00000000
64 }, {
65 0x00fff000,
66 0x0ff0ff00,
67 0x00fff000,
68 0x0fff0ff0,
69 0xff0fff00,
70 0xff00ff00,
71 0x0fff0ff0,
72 0x00000000
73 }, {
74 0x0ff00000,
75 0x0ff00000,
76 0xff000000,
77 0x00000000,
78 0x00000000,
79 0x00000000,
80 0x00000000,
81 0x00000000
82 }, {
83 0x000ff000,
84 0x00ff0000,
85 0x0ff00000,
86 0x0ff00000,
87 0x0ff00000,
88 0x00ff0000,
89 0x000ff000,
90 0x00000000
91 }, {
92 0x0ff00000,
93 0x00ff0000,
94 0x000ff000,
95 0x000ff000,
96 0x000ff000,
97 0x00ff0000,
98 0x0ff00000,
99 0x00000000
100 }, {
101 0x00000000,
102 0x0ff00ff0,
103 0x00ffff00,
104 0xffffffff,
105 0x00ffff00,
106 0x0ff00ff0,
107 0x00000000,
108 0x00000000
109 }, {
110 0x00000000,
111 0x00ff0000,
112 0x00ff0000,
113 0xffffff00,
114 0x00ff0000,
115 0x00ff0000,
116 0x00000000,
117 0x00000000
118 }, {
119 0x00000000,
120 0x00000000,
121 0x00000000,
122 0x00000000,
123 0x00000000,
124 0x00ff0000,
125 0x00ff0000,
126 0x0ff00000
127 }, {
128 0x00000000,
129 0x00000000,
130 0x00000000,
131 0xffffff00,
132 0x00000000,
133 0x00000000,
134 0x00000000,
135 0x00000000
136 }, {
137 0x00000000,
138 0x00000000,
139 0x00000000,
140 0x00000000,
141 0x00000000,
142 0x00ff0000,
143 0x00ff0000,
144 0x00000000
145 }, {
146 0x00000ff0,
147 0x0000ff00,
148 0x000ff000,
149 0x00ff0000,
150 0x0ff00000,
151 0xff000000,
152 0xf0000000,
153 0x00000000
154 }, {
155 0x0fffff00,
156 0xff000ff0,
157 0xff00fff0,
158 0xff0ffff0,
159 0xffff0ff0,
160 0xfff00ff0,
161 0x0fffff00,
162 0x00000000
163 }, {
164 0x00ff0000,
165 0x0fff0000,
166 0x00ff0000,
167 0x00ff0000,
168 0x00ff0000,
169 0x00ff0000,
170 0xffffff00,
171 0x00000000
172 }, {
173 0x0ffff000,
174 0xff00ff00,
175 0x0000ff00,
176 0x00fff000,
177 0x0ff00000,
178 0xff000f00,
179 0xffffff00,
180 0x00000000
181 }, {
182 0x0ffff000,
183 0xff00ff00,
184 0x0000ff00,
185 0x00fff000,
186 0x0000ff00,
187 0xff00ff00,
188 0x0ffff000,
189 0x00000000
190 }, {
191 0x000fff00,
192 0x00ffff00,
193 0x0ff0ff00,
194 0xff00ff00,
195 0xfffffff0,
196 0x0000ff00,
197 0x000ffff0,
198 0x00000000
199 }, {
200 0xffffff00,
201 0xff000000,
202 0xfffff000,
203 0x0000ff00,
204 0x0000ff00,
205 0xff00ff00,
206 0x0ffff000,
207 0x00000000
208 }, {
209 0x00fff000,
210 0x0ff00000,
211 0xff000000,
212 0xfffff000,
213 0xff00ff00,
214 0xff00ff00,
215 0x0ffff000,
216 0x00000000
217 }, {
218 0xffffff00,
219 0xff00ff00,
220 0x0000ff00,
221 0x000ff000,
222 0x00ff0000,
223 0x00ff0000,
224 0x00ff0000,
225 0x00000000
226 }, {
227 0x0ffff000,
228 0xff00ff00,
229 0xff00ff00,
230 0x0ffff000,
231 0xff00ff00,
232 0xff00ff00,
233 0x0ffff000,
234 0x00000000
235 }, {
236 0x0ffff000,
237 0xff00ff00,
238 0xff00ff00,
239 0x0fffff00,
240 0x0000ff00,
241 0x000ff000,
242 0x0fff0000,
243 0x00000000
244 }, {
245 0x00000000,
246 0x00ff0000,
247 0x00ff0000,
248 0x00000000,
249 0x00000000,
250 0x00ff0000,
251 0x00ff0000,
252 0x00000000
253 }, {
254 0x00000000,
255 0x00ff0000,
256 0x00ff0000,
257 0x00000000,
258 0x00ff0000,
259 0x00ff0000,
260 0x0ff00000,
261 0x00000000
262 }, {
263 0x000ff000,
264 0x00ff0000,
265 0x0ff00000,
266 0xff000000,
267 0x0ff00000,
268 0x00ff0000,
269 0x000ff000,
270 0x00000000
271 }, {
272 0x00000000,
273 0x00000000,
274 0xffffff00,
275 0x00000000,
276 0x00000000,
277 0xffffff00,
278 0x00000000,
279 0x00000000
280 }, {
281 0x0ff00000,
282 0x00ff0000,
283 0x000ff000,
284 0x0000ff00,
285 0x000ff000,
286 0x00ff0000,
287 0x0ff00000,
288 0x00000000
289 }, {
290 0x0ffff000,
291 0xff00ff00,
292 0x0000ff00,
293 0x000ff000,
294 0x00ff0000,
295 0x00000000,
296 0x00ff0000,
297 0x00000000
298 }, {
299 0x0fffff00,
300 0xff000ff0,
301 0xff0ffff0,
302 0xff0ffff0,
303 0xff0ffff0,
304 0xff000000,
305 0x0ffff000,
306 0x00000000
307 }, {
308 0x00ff0000,
309 0x0ffff000,
310 0xff00ff00,
311 0xff00ff00,
312 0xffffff00,
313 0xff00ff00,
314 0xff00ff00,
315 0x00000000
316 }, {
317 0xffffff00,
318 0x0ff00ff0,
319 0x0ff00ff0,
320 0x0fffff00,
321 0x0ff00ff0,
322 0x0ff00ff0,
323 0xffffff00,
324 0x00000000
325 }, {
326 0x00ffff00,
327 0x0ff00ff0,
328 0xff000000,
329 0xff000000,
330 0xff000000,
331 0x0ff00ff0,
332 0x00ffff00,
333 0x00000000
334 }, {
335 0xfffff000,
336 0x0ff0ff00,
337 0x0ff00ff0,
338 0x0ff00ff0,
339 0x0ff00ff0,
340 0x0ff0ff00,
341 0xfffff000,
342 0x00000000
343 }, {
344 0xfffffff0,
345 0x0ff000f0,
346 0x0ff0f000,
347 0x0ffff000,
348 0x0ff0f000,
349 0x0ff000f0,
350 0xfffffff0,
351 0x00000000
352 }, {
353 0xfffffff0,
354 0x0ff000f0,
355 0x0ff0f000,
356 0x0ffff000,
357 0x0ff0f000,
358 0x0ff00000,
359 0xffff0000,
360 0x00000000
361 }, {
362 0x00ffff00,
363 0x0ff00ff0,
364 0xff000000,
365 0xff000000,
366 0xff00fff0,
367 0x0ff00ff0,
368 0x00fffff0,
369 0x00000000
370 }, {
371 0xff00ff00,
372 0xff00ff00,
373 0xff00ff00,
374 0xffffff00,
375 0xff00ff00,
376 0xff00ff00,
377 0xff00ff00,
378 0x00000000
379 }, {
380 0x0ffff000,
381 0x00ff0000,
382 0x00ff0000,
383 0x00ff0000,
384 0x00ff0000,
385 0x00ff0000,
386 0x0ffff000,
387 0x00000000
388 }, {
389 0x000ffff0,
390 0x0000ff00,
391 0x0000ff00,
392 0x0000ff00,
393 0xff00ff00,
394 0xff00ff00,
395 0x0ffff000,
396 0x00000000
397 }, {
398 0xfff00ff0,
399 0x0ff00ff0,
400 0x0ff0ff00,
401 0x0ffff000,
402 0x0ff0ff00,
403 0x0ff00ff0,
404 0xfff00ff0,
405 0x00000000
406 }, {
407 0xffff0000,
408 0x0ff00000,
409 0x0ff00000,
410 0x0ff00000,
411 0x0ff000f0,
412 0x0ff00ff0,
413 0xfffffff0,
414 0x00000000
415 }, {
416 0xff000ff0,
417 0xfff0fff0,
418 0xfffffff0,
419 0xfffffff0,
420 0xff0f0ff0,
421 0xff000ff0,
422 0xff000ff0,
423 0x00000000
424 }, {
425 0xff000ff0,
426 0xfff00ff0,
427 0xffff0ff0,
428 0xff0ffff0,
429 0xff00fff0,
430 0xff000ff0,
431 0xff000ff0,
432 0x00000000
433 }, {
434 0x00fff000,
435 0x0ff0ff00,
436 0xff000ff0,
437 0xff000ff0,
438 0xff000ff0,
439 0x0ff0ff00,
440 0x00fff000,
441 0x00000000
442 }, {
443 0xffffff00,
444 0x0ff00ff0,
445 0x0ff00ff0,
446 0x0fffff00,
447 0x0ff00000,
448 0x0ff00000,
449 0xffff0000,
450 0x00000000
451 }, {
452 0x0ffff000,
453 0xff00ff00,
454 0xff00ff00,
455 0xff00ff00,
456 0xff0fff00,
457 0x0ffff000,
458 0x000fff00,
459 0x00000000
460 }, {
461 0xffffff00,
462 0x0ff00ff0,
463 0x0ff00ff0,
464 0x0fffff00,
465 0x0ff0ff00,
466 0x0ff00ff0,
467 0xfff00ff0,
468 0x00000000
469 }, {
470 0x0ffff000,
471 0xff00ff00,
472 0xfff00000,
473 0x0fff0000,
474 0x000fff00,
475 0xff00ff00,
476 0x0ffff000,
477 0x00000000
478 }, {
479 0xffffff00,
480 0xf0ff0f00,
481 0x00ff0000,
482 0x00ff0000,
483 0x00ff0000,
484 0x00ff0000,
485 0x0ffff000,
486 0x00000000
487 }, {
488 0xff00ff00,
489 0xff00ff00,
490 0xff00ff00,
491 0xff00ff00,
492 0xff00ff00,
493 0xff00ff00,
494 0xffffff00,
495 0x00000000
496 }, {
497 0xff00ff00,
498 0xff00ff00,
499 0xff00ff00,
500 0xff00ff00,
501 0xff00ff00,
502 0x0ffff000,
503 0x00ff0000,
504 0x00000000
505 }, {
506 0xff000ff0,
507 0xff000ff0,
508 0xff000ff0,
509 0xff0f0ff0,
510 0xfffffff0,
511 0xfff0fff0,
512 0xff000ff0,
513 0x00000000
514 }, {
515 0xff000ff0,
516 0xff000ff0,
517 0x0ff0ff00,
518 0x00fff000,
519 0x00fff000,
520 0x0ff0ff00,
521 0xff000ff0,
522 0x00000000
523 }, {
524 0xff00ff00,
525 0xff00ff00,
526 0xff00ff00,
527 0x0ffff000,
528 0x00ff0000,
529 0x00ff0000,
530 0x0ffff000,
531 0x00000000
532 }, {
533 0xfffffff0,
534 0xff000ff0,
535 0xf000ff00,
536 0x000ff000,
537 0x00ff00f0,
538 0x0ff00ff0,
539 0xfffffff0,
540 0x00000000
541 }, {
542 0x0ffff000,
543 0x0ff00000,
544 0x0ff00000,
545 0x0ff00000,
546 0x0ff00000,
547 0x0ff00000,
548 0x0ffff000,
549 0x00000000
550 }, {
551 0xff000000,
552 0x0ff00000,
553 0x00ff0000,
554 0x000ff000,
555 0x0000ff00,
556 0x00000ff0,
557 0x000000f0,
558 0x00000000
559 }, {
560 0x0ffff000,
561 0x000ff000,
562 0x000ff000,
563 0x000ff000,
564 0x000ff000,
565 0x000ff000,
566 0x0ffff000,
567 0x00000000
568 }, {
569 0x000f0000,
570 0x00fff000,
571 0x0ff0ff00,
572 0xff000ff0,
573 0x00000000,
574 0x00000000,
575 0x00000000,
576 0x00000000
577 }, {
578 0x00000000,
579 0x00000000,
580 0x00000000,
581 0x00000000,
582 0x00000000,
583 0x00000000,
584 0x00000000,
585 0xffffffff
586 }, {
587 0x00ff0000,
588 0x00ff0000,
589 0x000ff000,
590 0x00000000,
591 0x00000000,
592 0x00000000,
593 0x00000000,
594 0x00000000
595 }, {
596 0x00000000,
597 0x00000000,
598 0x0ffff000,
599 0x0000ff00,
600 0x0fffff00,
601 0xff00ff00,
602 0x0fff0ff0,
603 0x00000000
604 }, {
605 0xfff00000,
606 0x0ff00000,
607 0x0ff00000,
608 0x0fffff00,
609 0x0ff00ff0,
610 0x0ff00ff0,
611 0xff0fff00,
612 0x00000000
613 }, {
614 0x00000000,
615 0x00000000,
616 0x0ffff000,
617 0xff00ff00,
618 0xff000000,
619 0xff00ff00,
620 0x0ffff000,
621 0x00000000
622 }, {
623 0x000fff00,
624 0x0000ff00,
625 0x0000ff00,
626 0x0fffff00,
627 0xff00ff00,
628 0xff00ff00,
629 0x0fff0ff0,
630 0x00000000
631 }, {
632 0x00000000,
633 0x00000000,
634 0x0ffff000,
635 0xff00ff00,
636 0xffffff00,
637 0xff000000,
638 0x0ffff000,
639 0x00000000
640 }, {
641 0x00fff000,
642 0x0ff0ff00,
643 0x0ff00000,
644 0xffff0000,
645 0x0ff00000,
646 0x0ff00000,
647 0xffff0000,
648 0x00000000
649 }, {
650 0x00000000,
651 0x00000000,
652 0x0fff0ff0,
653 0xff00ff00,
654 0xff00ff00,
655 0x0fffff00,
656 0x0000ff00,
657 0xfffff000
658 }, {
659 0xfff00000,
660 0x0ff00000,
661 0x0ff0ff00,
662 0x0fff0ff0,
663 0x0ff00ff0,
664 0x0ff00ff0,
665 0xfff00ff0,
666 0x00000000
667 }, {
668 0x00ff0000,
669 0x00000000,
670 0x0fff0000,
671 0x00ff0000,
672 0x00ff0000,
673 0x00ff0000,
674 0x0ffff000,
675 0x00000000
676 }, {
677 0x0000ff00,
678 0x00000000,
679 0x0000ff00,
680 0x0000ff00,
681 0x0000ff00,
682 0xff00ff00,
683 0xff00ff00,
684 0x0ffff000
685 }, {
686 0xfff00000,
687 0x0ff00000,
688 0x0ff00ff0,
689 0x0ff0ff00,
690 0x0ffff000,
691 0x0ff0ff00,
692 0xfff00ff0,
693 0x00000000
694 }, {
695 0x0fff0000,
696 0x00ff0000,
697 0x00ff0000,
698 0x00ff0000,
699 0x00ff0000,
700 0x00ff0000,
701 0x0ffff000,
702 0x00000000
703 }, {
704 0x00000000,
705 0x00000000,
706 0xff00ff00,
707 0xfffffff0,
708 0xfffffff0,
709 0xff0f0ff0,
710 0xff000ff0,
711 0x00000000
712 }, {
713 0x00000000,
714 0x00000000,
715 0xfffff000,
716 0xff00ff00,
717 0xff00ff00,
718 0xff00ff00,
719 0xff00ff00,
720 0x00000000
721 }, {
722 0x00000000,
723 0x00000000,
724 0x0ffff000,
725 0xff00ff00,
726 0xff00ff00,
727 0xff00ff00,
728 0x0ffff000,
729 0x00000000
730 }, {
731 0x00000000,
732 0x00000000,
733 0xff0fff00,
734 0x0ff00ff0,
735 0x0ff00ff0,
736 0x0fffff00,
737 0x0ff00000,
738 0xffff0000
739 }, {
740 0x00000000,
741 0x00000000,
742 0x0fff0ff0,
743 0xff00ff00,
744 0xff00ff00,
745 0x0fffff00,
746 0x0000ff00,
747 0x000ffff0
748 }, {
749 0x00000000,
750 0x00000000,
751 0xff0fff00,
752 0x0fff0ff0,
753 0x0ff00ff0,
754 0x0ff00000,
755 0xffff0000,
756 0x00000000
757 }, {
758 0x00000000,
759 0x00000000,
760 0x0fffff00,
761 0xff000000,
762 0x0ffff000,
763 0x0000ff00,
764 0xfffff000,
765 0x00000000
766 }, {
767 0x000f0000,
768 0x00ff0000,
769 0x0fffff00,
770 0x00ff0000,
771 0x00ff0000,
772 0x00ff0f00,
773 0x000ff000,
774 0x00000000
775 }, {
776 0x00000000,
777 0x00000000,
778 0xff00ff00,
779 0xff00ff00,
780 0xff00ff00,
781 0xff00ff00,
782 0x0fff0ff0,
783 0x00000000
784 }, {
785 0x00000000,
786 0x00000000,
787 0xff00ff00,
788 0xff00ff00,
789 0xff00ff00,
790 0x0ffff000,
791 0x00ff0000,
792 0x00000000
793 }, {
794 0x00000000,
795 0x00000000,
796 0xff000ff0,
797 0xff0f0ff0,
798 0xfffffff0,
799 0xfffffff0,
800 0x0ff0ff00,
801 0x00000000
802 }, {
803 0x00000000,
804 0x00000000,
805 0xff000ff0,
806 0x0ff0ff00,
807 0x00fff000,
808 0x0ff0ff00,
809 0xff000ff0,
810 0x00000000
811 }, {
812 0x00000000,
813 0x00000000,
814 0xff00ff00,
815 0xff00ff00,
816 0xff00ff00,
817 0x0fffff00,
818 0x0000ff00,
819 0xfffff000
820 }, {
821 0x00000000,
822 0x00000000,
823 0xffffff00,
824 0xf00ff000,
825 0x00ff0000,
826 0x0ff00f00,
827 0xffffff00,
828 0x00000000
829 }, {
830 0x000fff00,
831 0x00ff0000,
832 0x00ff0000,
833 0xfff00000,
834 0x00ff0000,
835 0x00ff0000,
836 0x000fff00,
837 0x00000000
838 }, {
839 0x000ff000,
840 0x000ff000,
841 0x000ff000,
842 0x00000000,
843 0x000ff000,
844 0x000ff000,
845 0x000ff000,
846 0x00000000
847 }, {
848 0xfff00000,
849 0x00ff0000,
850 0x00ff0000,
851 0x000fff00,
852 0x00ff0000,
853 0x00ff0000,
854 0xfff00000,
855 0x00000000
856 }, {
857 0x0fff0ff0,
858 0xf00fff00,
859 0x00000000,
860 0x00000000,
861 0x00000000,
862 0x00000000,
863 0x00000000,
864 0x00000000
865 }
866 };
868 #endif /* DBGFONT_H_ */