Skip to content

Commit ad842c2

Browse files
committed
Merge branch 'master' of github.com:/tschak909/platoterm64
2 parents 029ce58 + 0b46153 commit ad842c2

File tree

8 files changed

+293
-149
lines changed

8 files changed

+293
-149
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ dist-c128: $(PROGRAM).c128
360360
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/c128-joy.mou mou-joy
361361
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/c128-pot.mou mou-pot
362362
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/c128-swlink.ser ser-swlink
363+
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/c128-vdc2.tgi tgi-vdchi
364+
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/c128-vdc.tgi tgi-vdclo
363365
c1541 -attach dist.c128/platoterm128-1_0.d64 -write dist.c128/splash.bin splash.bin
364366

365367
dist-apple2: $(PROGRAM).apple2

dist.c128/c128-vdc.tgi

1.98 KB
Binary file not shown.

dist.c128/c128-vdc2.tgi

2.01 KB
Binary file not shown.

src/c128/font.c

Lines changed: 168 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include <stdint.h>
66

77
uint8_t FONT_SIZE_X=8;
8-
uint8_t FONT_SIZE_Y=15; // Last line not used, for now
8+
uint8_t FONT_SIZE_Y_400=15; // Last line not used, for now
99

10-
uint8_t font[]={
10+
uint8_t font_400[]={
1111
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x20 space */
1212
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
1313

@@ -489,7 +489,171 @@ uint8_t font[]={
489489
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
490490
};
491491

492-
// Get rid of font pointer table.
493-
#define FONTPTR(a) (1<<4)
494492

495493
uint8_t fontm23[2048];
494+
495+
uint8_t FONT_SIZE_Y_200=6;
496+
497+
uint8_t font_200[]={
498+
0x00,0x00,0x00,0x00,0x00,0x00, /* SPACE 0x20 */
499+
0x08,0x08,0x08,0x00,0x08,0x00, /* ! 0x21 */
500+
0x24,0x24,0x00,0x00,0x00,0x00, /* " 0x22 */
501+
0x24,0x7E,0x24,0x7E,0x24,0x00, /* # 0x23 */
502+
0x08,0x3E,0x38,0x0E,0x3E,0x08, /* $ 0x24 */
503+
0x62,0x64,0x08,0x13,0x23,0x00, /* % 0x25 */
504+
0x38,0x38,0x7E,0x48,0x77,0x00, /* & 0x26 */
505+
0x08,0x08,0x00,0x00,0x00,0x00, /* ' 0x27 */
506+
0x08,0x10,0x10,0x10,0x08,0x00, /* ( 0x28 */
507+
0x08,0x04,0x04,0x04,0x08,0x00, /* ) 0x29 */
508+
0x08,0x6B,0x1C,0x6B,0x08,0x00, /* * 0x2a */
509+
0x00,0x18,0x7E,0x18,0x00,0x00, /* + 0x2b */
510+
0x00,0x00,0x00,0x00,0x18,0x08, /* , 0x2c */
511+
0x00,0x00,0x7E,0x00,0x00,0x00, /* - 0x2d */
512+
0x00,0x00,0x00,0x00,0x18,0x00, /* . 0x2e */
513+
0x02,0x04,0x08,0x10,0x20,0x00, /* / 0x2f */
514+
0x3C,0x46,0x4A,0x52,0x3C,0x00, /* 0 0x30 */
515+
0x08,0x38,0x08,0x08,0x3E,0x00, /* 1 0x31 */
516+
0x3C,0x02,0x3C,0x40,0x7E,0x00, /* 2 0x32 */
517+
0x3C,0x02,0x1C,0x02,0x3C,0x00, /* 3 0x33 */
518+
0x1C,0x24,0x44,0x7E,0x04,0x00, /* 4 0x34 */
519+
0x7E,0x40,0x7C,0x02,0x7C,0x00, /* 5 0x35 */
520+
0x3C,0x40,0x7C,0x42,0x3C,0x00, /* 6 0x36 */
521+
0x7E,0x02,0x0C,0x10,0x10,0x00, /* 7 0x37 */
522+
0x3C,0x42,0x3C,0x42,0x3C,0x00, /* 8 0x38 */
523+
0x3C,0x42,0x3E,0x02,0x3C,0x00, /* 9 0x39 */
524+
0x00,0x00,0x18,0x00,0x18,0x00, /* : 0x3a */
525+
0x00,0x00,0x18,0x00,0x18,0x08, /* ; 0x3b */
526+
0x00,0x0C,0x30,0x0C,0x00,0x00, /* < 0x3c */
527+
0x00,0x7E,0x00,0x7E,0x00,0x00, /* = 0x3d */
528+
0x00,0x18,0x06,0x18,0x00,0x00, /* > 0x3e */
529+
0x3C,0x42,0x1C,0x00,0x10,0x00, /* ? 0x3f */
530+
0x3C,0x4E,0x5E,0x40,0x3E,0x00, /* @ 0x40 */
531+
0x3C,0x42,0x7E,0x42,0x42,0x00, /* A 0x41 */
532+
0x7C,0x42,0x7C,0x42,0x7C,0x00, /* B 0x42 */
533+
0x3C,0x42,0x40,0x42,0x3C,0x00, /* C 0x43 */
534+
0x78,0x44,0x42,0x44,0x78,0x00, /* D 0x44 */
535+
0x7E,0x40,0x7C,0x40,0x7E,0x00, /* E 0x45 */
536+
0x7E,0x40,0x7C,0x40,0x40,0x00, /* F 0x46 */
537+
0x3E,0x40,0x4E,0x42,0x3E,0x00, /* G 0x47 */
538+
0x42,0x42,0x7E,0x42,0x42,0x00, /* H 0x48 */
539+
0x1C,0x08,0x08,0x08,0x1C,0x00, /* I 0x49 */
540+
0x02,0x02,0x02,0x42,0x3C,0x00, /* J 0x4a */
541+
0x46,0x48,0x78,0x44,0x42,0x00, /* K 0x4b */
542+
0x40,0x40,0x40,0x40,0x7E,0x00, /* L 0x4c */
543+
0x42,0x66,0x5A,0x42,0x42,0x00, /* M 0x4d */
544+
0x62,0x52,0x4A,0x46,0x42,0x00, /* N 0x4e */
545+
0x3C,0x42,0x42,0x42,0x3C,0x00, /* O 0x4f */
546+
0x7C,0x42,0x7C,0x40,0x40,0x00, /* P 0x50 */
547+
0x3C,0x42,0x4A,0x46,0x3E,0x00, /* Q 0x51 */
548+
0x7C,0x42,0x7C,0x42,0x42,0x00, /* R 0x52 */
549+
0x3C,0x40,0x3C,0x02,0x3C,0x00, /* S 0x53 */
550+
0x7F,0x08,0x08,0x08,0x08,0x00, /* T 0x54 */
551+
0x42,0x42,0x42,0x42,0x3C,0x00, /* U 0x55 */
552+
0x42,0x42,0x42,0x24,0x18,0x00, /* V 0x56 */
553+
0x42,0x42,0x5A,0x66,0x42,0x00, /* W 0x57 */
554+
0x42,0x24,0x18,0x24,0x42,0x00, /* X 0x58 */
555+
0x41,0x41,0x3E,0x08,0x08,0x00, /* Y 0x59 */
556+
0x7E,0x04,0x18,0x20,0x7E,0x00, /* Z 0x5a */
557+
0x38,0x20,0x20,0x20,0x38,0x00, /* [ 0x5b */
558+
0x40,0x20,0x10,0x08,0x04,0x00, /* \ 0x5c */
559+
0x1C,0x04,0x04,0x04,0x1C,0x00, /* ] 0x5d */
560+
0x18,0x24,0x00,0x00,0x00,0x00, /* CIRCUMFLEX ^ 0x5e*/
561+
0x00,0x00,0x00,0x00,0x7E,0x00, /* _ 0x5f */
562+
0x30,0x08,0x00,0x00,0x00,0x00, /* GRAVE ACCENT ` 0x60 */
563+
0x00,0x3C,0x02,0x3E,0X3E,0x00, /* a 0x61 */
564+
0x40,0x7C,0x42,0x42,0x7C,0x00, /* b 0x62 */
565+
0x00,0x3C,0x40,0x40,0x3C,0x00, /* c 0x63 */
566+
0x02,0x3E,0x42,0x42,0x3E,0x00, /* d 0x64 */
567+
0x00,0x3c,0x7e,0x40,0x3c,0x00, /* e 0x65 */
568+
0x0E,0x10,0x3C,0x10,0x10,0x00, /* f 0x66 */
569+
0x00,0x3C,0x42,0x3E,0x02,0x1C, /* g 0x67 */
570+
0x40,0x7C,0x42,0x42,0x42,0x00, /* h 0x68 */
571+
0x08,0x00,0x18,0x08,0x1C,0x00, /* i 0x69 */
572+
0x08,0x00,0x18,0x08,0x08,0x30, /* j 0x6a */
573+
0x40,0x46,0x78,0x48,0x46,0x00, /* k 0x6b */
574+
0x18,0x08,0x08,0x08,0x1C,0x00, /* l 0x6c */
575+
0x00,0x7E,0x49,0x49,0x49,0x00, /* m 0x6d */
576+
0x00,0x7C,0x42,0x42,0x42,0x00, /* n 0x6e */
577+
0x00,0x3C,0x42,0x42,0x3C,0x00, /* o 0x6f */
578+
0x00,0x7C,0x42,0x42,0x7C,0x40, /* p 0x70 */
579+
0x00,0x3C,0x42,0x3E,0x02,0x03, /* q 0x67 */
580+
0x00,0x2E,0x30,0x20,0x20,0x00, /* r 0x72 */
581+
0x00,0x1E,0x70,0x0E,0x7C,0x00, /* s 0x73 */
582+
0x10,0x3E,0x10,0x10,0x0E,0x00, /* t 0x74 */
583+
0x00,0x42,0x42,0x42,0x3E,0x00, /* u 0x75 */
584+
0x00,0x22,0x22,0x14,0x08,0x00, /* v 0x76 */
585+
0x00,0x41,0x49,0x49,0x36,0x00, /* w 0x77 */
586+
0x00,0x63,0x1C,0x14,0x63,0x00, /* x 0x78 */
587+
0x00,0x42,0x42,0x3E,0x02,0x1C, /* y 0x79 */
588+
0x00,0x3E,0x0C,0x18,0x3E,0x00, /* z 0x7a */
589+
0x0E,0x08,0x30,0x08,0x0E,0x00, /* { 0x7b */
590+
0x08,0x08,0x08,0x08,0x08,0x00, /* | 0x7c */
591+
0x38,0x08,0x06,0x08,0x38,0x00, /* } 0x7d */
592+
0x32,0x4C,0x00,0x00,0x00,0x00, /* ~ 0x7e */
593+
594+
0x00,0x70,0x50,0x70,0x00,0x00, /* BOX 0x7f */ /* TODO: PLATO extended characters */
595+
0x00,0x00,0x00,0x00,0x00,0x00, /* SPACE 0xa0 */
596+
0x00,0x10,0x20,0x40,0x80,0x00, /* / 0xa1 */
597+
0x00,0xF0,0x00,0xF0,0x00,0xF0, /* EQUIVALENT 0xa2 */
598+
0x00,0x00,0x00,0x00,0x68,0xB0, /* LOW TILDE 0xa3 */
599+
0x20,0x70,0x80,0x70,0x20,0x00, /* ASSIGN 0xa4 */
600+
0x20,0xF0,0x20,0xF0,0x40,0x00, /* NOT EQUAL 0xa5 */
601+
0x00,0x20,0x70,0x20,0x20,0x00, /* UP ARROW 0xa6 */
602+
0x00,0x00,0x20,0xF0,0x20,0x00, /* RIGHT ARROW 0xa7 */
603+
0x00,0x20,0x20,0x70,0x20,0x00, /* DOWN ARROW 0xa8 */
604+
0x00,0x00,0x40,0xF0,0x40,0x00, /* LEFT ARROW 0xa9 */
605+
0x00,0x50,0x20,0x50,0x00,0x00, /* MULTIPLY 0xaa */
606+
0xF0,0x80,0x60,0x80,0xF0,0x00, /* SIGMA 0xab */
607+
0x00,0x20,0x50,0x88,0xF8,0x00, /* DELTA 0xac*/
608+
0x00,0x90,0x90,0x60,0x00,0x00, /* UNION 0xad*/
609+
0x00,0x60,0x90,0x90,0x00,0x00, /* INTERSECT 0xae */
610+
0x00,0x60,0x00,0x60,0x00,0x00, /* DIVIDE 0xaf */
611+
0x00,0x50,0xA0,0x70,0x00,0x00, /* ALPHA 0xb0 */
612+
0x20,0x50,0xA0,0x90,0xE0,0x80, /* BETA 0xb1 */
613+
0x20,0x40,0x20,0x50,0x70,0x00, /* DELTA 0xb2 */
614+
0x80,0x40,0x20,0x50,0x90,0x00, /* LAMBDA 0xb3 */
615+
0x00,0x00,0x50,0x50,0x60,0x80, /* MU 0xb4 */
616+
0x08,0x78,0xD0,0x50,0x50,0x00, /* PI 0xb5 */
617+
0x00,0x20,0x50,0x50,0xA0,0x80, /* RHO 0xb6 */
618+
0x30,0x40,0xA0,0xA0,0x40,0x00, /* SIGMA 0xb7 */
619+
0x00,0x00,0x90,0xB0,0x60,0x00, /* OMEGA 0xb8 */
620+
0x20,0x40,0x80,0x40,0x20,0xE0, /* LESS THAN OR EQUAL 0xb9 */
621+
0x80,0x40,0x20,0x40,0x80,0xE0, /* GREATER THAN OR EQUAL 0xba */
622+
0x20,0x50,0x70,0x50,0x20,0x00, /* THETA 0xbb */
623+
0x30,0x60,0xA0,0x60,0x30,0x00, /* l-embed 0xbc */
624+
0x00,0x60,0x90,0x60,0x00,0x00, /* DEGREE 0xbd */
625+
0xC0,0x60,0x50,0x60,0xC0,0x00, /* r-embed 0xbe */
626+
0xC0,0xA0,0x50,0x50,0xA0,0xC0, /* ANSWER ARROW 0xbf */
627+
0xFF,0x1C,0x20,0x20,0x1C,0xFF, /* COPYRIGHT 0xc0 */
628+
0x50,0x00,0x00,0x00,0x00,0x00, /* DIERESIS 0xc1 */
629+
0x00,0x70,0x50,0x70,0x00,0x00, /* BOX 0xc2 */
630+
0x00,0x00,0x20,0x00,0x00,0x00, /* INTERPUNCT 0xc3 */
631+
0x20,0x70,0xF8,0x70,0x20,0x00, /* DIAMOND 0xc4 */
632+
0x00,0x50,0x20,0x50,0x00,0x00, /* MULTIPLY 0xc5 */
633+
0x10,0x20,0x00,0x00,0x00,0x00, /* ACUTE ACCENT 0xc6 */
634+
0x00,0x00,0x00,0x08,0x10,0x00, /* CEDILLA 0xc7 */
635+
0x10,0x20,0x00,0x00,0x00,0x00, /* HACEK 0xc8 */
636+
0x20,0x70,0xF8,0x70,0x20,0x00, /* DIAMOND 0xc9 */
637+
0x20,0x20,0x20,0x20,0x20,0x20, /* | 0xca */
638+
0x00,0x00,0x00,0x00,0x00,0x00,
639+
0x00,0x00,0x00,0x00,0x00,0x00,
640+
0x00,0x00,0x00,0x00,0x00,0x00,
641+
0x00,0x00,0x00,0x00,0x00,0x00,
642+
0x00,0x00,0x00,0x00,0x00,0x00,
643+
0x00,0x00,0x00,0x00,0x00,0x00,
644+
0x00,0x00,0x00,0x00,0x00,0x00,
645+
0x00,0x00,0x00,0x00,0x00,0x00,
646+
0x00,0x00,0x00,0x00,0x00,0x00,
647+
0x00,0x00,0x00,0x00,0x00,0x00,
648+
0x00,0x00,0x00,0x00,0x00,0x00,
649+
0x00,0x00,0x00,0x00,0x00,0x00,
650+
0x00,0x00,0x00,0x00,0x00,0x00,
651+
0x00,0x00,0x00,0x00,0x00,0x00,
652+
0x00,0x00,0x00,0x00,0x00,0x00,
653+
0x00,0x00,0x00,0x00,0x00,0x00,
654+
0x00,0x00,0x00,0x00,0x00,0x00,
655+
0x00,0x00,0x00,0x00,0x00,0x00,
656+
0x00,0x00,0x00,0x00,0x00,0x00,
657+
0x00,0x00,0x00,0x00,0x00,0x00,
658+
0x00,0x00,0x00,0x00,0x00,0x00
659+
};

src/c128/nmi-trampoline.s

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/c128/scale.c

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -9,73 +9,6 @@
99

1010
#include <stdint.h>
1111

12-
/* X and Y tables used to scale 512x512 PLATO display to 640x480 */
13-
unsigned short scalex[]={
14-
64,65,66,67,68,69,70,71,
15-
72,73,74,75,76,77,78,79,
16-
80,81,82,83,84,85,86,87,
17-
88,89,90,91,92,93,94,95,
18-
96,97,98,99,100,101,102,103,
19-
104,105,106,107,108,109,110,111,
20-
112,113,114,115,116,117,118,119,
21-
120,121,122,123,124,125,126,127,
22-
128,129,130,131,132,133,134,135,
23-
136,137,138,139,140,141,142,143,
24-
144,145,146,147,148,149,150,151,
25-
152,153,154,155,156,157,158,159,
26-
160,161,162,163,164,165,166,167,
27-
168,169,170,171,172,173,174,175,
28-
176,177,178,179,180,181,182,183,
29-
184,185,186,187,188,189,190,191,
30-
192,193,194,195,196,197,198,199,
31-
200,201,202,203,204,205,206,207,
32-
208,209,210,211,212,213,214,215,
33-
216,217,218,219,220,221,222,223,
34-
224,225,226,227,228,229,230,231,
35-
232,233,234,235,236,237,238,239,
36-
240,241,242,243,244,245,246,247,
37-
248,249,250,251,252,253,254,255,
38-
256,257,258,259,260,261,262,263,
39-
264,265,266,267,268,269,270,271,
40-
272,273,274,275,276,277,278,279,
41-
280,281,282,283,284,285,286,287,
42-
288,289,290,291,292,293,294,295,
43-
296,297,298,299,300,301,302,303,
44-
304,305,306,307,308,309,310,311,
45-
312,313,314,315,316,317,318,319,
46-
320,321,322,323,324,325,326,327,
47-
328,329,330,331,332,333,334,335,
48-
336,337,338,339,340,341,342,343,
49-
344,345,346,347,348,349,350,351,
50-
352,353,354,355,356,357,358,359,
51-
360,361,362,363,364,365,366,367,
52-
368,369,370,371,372,373,374,375,
53-
376,377,378,379,380,381,382,383,
54-
384,385,386,387,388,389,390,391,
55-
392,393,394,395,396,397,398,399,
56-
400,401,402,403,404,405,406,407,
57-
408,409,410,411,412,413,414,415,
58-
416,417,418,419,420,421,422,423,
59-
424,425,426,427,428,429,430,431,
60-
432,433,434,435,436,437,438,439,
61-
440,441,442,443,444,445,446,447,
62-
448,449,450,451,452,453,454,455,
63-
456,457,458,459,460,461,462,463,
64-
464,465,466,467,468,469,470,471,
65-
472,473,474,475,476,477,478,479,
66-
480,481,482,483,484,485,486,487,
67-
488,489,490,491,492,493,494,495,
68-
496,497,498,499,500,501,502,503,
69-
504,505,506,507,508,509,510,511,
70-
512,513,514,515,516,517,518,519,
71-
520,521,522,523,524,525,526,527,
72-
528,529,530,531,532,533,534,535,
73-
536,537,538,539,540,541,542,543,
74-
544,545,546,547,548,549,550,551,
75-
552,553,554,555,556,557,558,559,
76-
560,561,562,563,564,565,566,567,
77-
568,569,570,571,572,573,574,575,
78-
};
7912

8013
unsigned short scaley[]={
8114
479,478,477,476,475,474,473,472,

0 commit comments

Comments
 (0)