-
Notifications
You must be signed in to change notification settings - Fork 1
/
vdp_charsetlc.c
32 lines (25 loc) · 1.59 KB
/
vdp_charsetlc.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
#include "vdp.h"
// tested
#define COLECO_FONT (unsigned char*)0x15A3
const unsigned char TrueLowerCase[] = { // chars 96-122
0x20,0x10,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x04,0x3C,0x44,0x3C,0x00,
0x40,0x40,0x78,0x44,0x44,0x44,0x78,0x00,0x00,0x00,0x38,0x44,0x40,0x40,0x38,0x00,
0x04,0x04,0x3C,0x44,0x44,0x44,0x3C,0x00,0x00,0x00,0x38,0x44,0x7C,0x40,0x38,0x00,
0x0C,0x10,0x38,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x3C,0x44,0x44,0x3C,0x04,0x38,
0x40,0x40,0x78,0x44,0x44,0x44,0x44,0x00,0x10,0x00,0x10,0x10,0x10,0x10,0x38,0x00,
0x08,0x00,0x08,0x08,0x08,0x08,0x48,0x30,0x40,0x40,0x44,0x48,0x70,0x48,0x44,0x00,
0x30,0x10,0x10,0x10,0x10,0x10,0x38,0x00,0x00,0x00,0x68,0x54,0x54,0x54,0x54,0x00,
0x00,0x00,0x58,0x64,0x44,0x44,0x44,0x00,0x00,0x00,0x38,0x44,0x44,0x44,0x38,0x00,
0x00,0x00,0x78,0x44,0x44,0x44,0x78,0x40,0x00,0x00,0x3C,0x44,0x44,0x44,0x3C,0x04,
0x00,0x00,0x28,0x34,0x20,0x20,0x20,0x00,0x00,0x00,0x3C,0x40,0x38,0x04,0x78,0x00,
0x00,0x10,0x38,0x10,0x10,0x10,0x0C,0x00,0x00,0x00,0x44,0x44,0x44,0x4C,0x34,0x00,
0x00,0x00,0x44,0x44,0x44,0x28,0x10,0x00,0x00,0x00,0x54,0x54,0x54,0x54,0x28,0x00,
0x00,0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00,0x00,0x44,0x44,0x44,0x3C,0x04,0x38,
0x00,0x00,0x7C,0x08,0x10,0x20,0x7C,0x00,0x00,0x0C,0x10,0x10,0x20,0x10,0x10,0x0C,
0x00,0x10,0x10,0x10,0x00,0x10,0x10,0x10,0x00,0x60,0x10,0x10,0x08,0x10,0x10,0x60,
0x00,0x00,0x20,0x54,0x08,0x00,0x00,0x00
};
void charsetlc() {
vdpmemcpy(gPattern+0x300, TrueLowerCase, sizeof(TrueLowerCase));
vdpmemcpy(gPattern+0x100, COLECO_FONT, 64*8); // the rest of the character set (Coleco font isn't shifted like TI's)
}