Bochs/bochs/gui/sdl.h
2002-03-21 19:12:35 +00:00

1142 lines
49 KiB
C

#define BX_HEADERBAR_FG_RED 0x10
#define BX_HEADERBAR_FG_GREEN 0x10
#define BX_HEADERBAR_FG_BLUE 0x10
#define BX_HEADERBAR_BG_RED 0xD0
#define BX_HEADERBAR_BG_GREEN 0xD0
#define BX_HEADERBAR_BG_BLUE 0xD0
unsigned char sdl_font8x16[256][16] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, // 0
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 126, 129, 165, 129, 129, 189, // 1
153, 129, 129, 126, 0, 0, 0, 0 },
{ 0, 0, 126, 255, 219, 255, 255, 195, // 2
231, 255, 255, 126, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 108, 254, 254, 254, // 3
254, 124, 56, 16, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 16, 56, 124, 254, // 4
124, 56, 16, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 24, 60, 60, 231, 231, // 5
231, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 0, 24, 60, 126, 255, 255, // 6
126, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 24, 60, // 7
60, 24, 0, 0, 0, 0, 0, 0 },
{ 255, 255, 255, 255, 255, 255, 231, 195, // 8
195, 231, 255, 255, 255, 255, 255, 255 },
{ 0, 0, 0, 0, 0, 60, 102, 66, // 9
66, 102, 60, 0, 0, 0, 0, 0 },
{ 255, 255, 255, 255, 255, 195, 153, 189, // 10
189, 153, 195, 255, 255, 255, 255, 255 },
{ 0, 0, 30, 14, 26, 50, 120, 204, // 11
204, 204, 204, 120, 0, 0, 0, 0 },
{ 0, 0, 60, 102, 102, 102, 102, 60, // 12
24, 126, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 63, 51, 63, 48, 48, 48, // 13
48, 112, 240, 224, 0, 0, 0, 0 },
{ 0, 0, 127, 99, 127, 99, 99, 99, // 14
99, 103, 231, 230, 192, 0, 0, 0 },
{ 0, 0, 0, 24, 24, 219, 60, 231, // 15
60, 219, 24, 24, 0, 0, 0, 0 },
{ 0, 128, 192, 224, 240, 248, 254, 248, // 16
240, 224, 192, 128, 0, 0, 0, 0 },
{ 0, 2, 6, 14, 30, 62, 254, 62, // 17
30, 14, 6, 2, 0, 0, 0, 0 },
{ 0, 0, 24, 60, 126, 24, 24, 24, // 18
126, 60, 24, 0, 0, 0, 0, 0 },
{ 0, 0, 102, 102, 102, 102, 102, 102, // 19
102, 0, 102, 102, 0, 0, 0, 0 },
{ 0, 0, 127, 219, 219, 219, 123, 27, // 20
27, 27, 27, 27, 0, 0, 0, 0 },
{ 0, 124, 198, 96, 56, 108, 198, 198, // 21
108, 56, 12, 198, 124, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 22
254, 254, 254, 254, 0, 0, 0, 0 },
{ 0, 0, 24, 60, 126, 24, 24, 24, // 23
126, 60, 24, 126, 0, 0, 0, 0 },
{ 0, 0, 24, 60, 126, 24, 24, 24, // 24
24, 24, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 24, 24, 24, 24, 24, 24, // 25
24, 126, 60, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 24, 12, 254, // 26
12, 24, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 48, 96, 254, // 27
96, 48, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 192, 192, // 28
192, 254, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 40, 108, 254, // 29
108, 40, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 16, 56, 56, 124, // 30
124, 254, 254, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 254, 254, 124, 124, // 31
56, 56, 16, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 32
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 24, 60, 60, 60, 24, 24, // 33
24, 0, 24, 24, 0, 0, 0, 0 },
{ 0, 102, 102, 102, 36, 0, 0, 0, // 34
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 108, 108, 254, 108, 108, // 35
108, 254, 108, 108, 0, 0, 0, 0 },
{ 24, 24, 124, 198, 194, 192, 124, 6, // 36
6, 134, 198, 124, 24, 24, 0, 0 },
{ 0, 0, 0, 0, 194, 198, 12, 24, // 37
48, 96, 198, 134, 0, 0, 0, 0 },
{ 0, 0, 56, 108, 108, 56, 118, 220, // 38
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 48, 48, 48, 96, 0, 0, 0, // 39
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 12, 24, 48, 48, 48, 48, // 40
48, 48, 24, 12, 0, 0, 0, 0 },
{ 0, 0, 48, 24, 12, 12, 12, 12, // 41
12, 12, 24, 48, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 102, 60, 255, // 42
60, 102, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 24, 24, 126, // 43
24, 24, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 44
0, 24, 24, 24, 48, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 254, // 45
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 46
0, 0, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 2, 6, 12, 24, // 47
48, 96, 192, 128, 0, 0, 0, 0 },
{ 0, 0, 56, 108, 198, 198, 214, 214, // 48
198, 198, 108, 56, 0, 0, 0, 0 },
{ 0, 0, 24, 56, 120, 24, 24, 24, // 49
24, 24, 24, 126, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 6, 12, 24, 48, // 50
96, 192, 198, 254, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 6, 6, 60, 6, // 51
6, 6, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 12, 28, 60, 108, 204, 254, // 52
12, 12, 12, 30, 0, 0, 0, 0 },
{ 0, 0, 254, 192, 192, 192, 252, 6, // 53
6, 6, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 56, 96, 192, 192, 252, 198, // 54
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 254, 198, 6, 6, 12, 24, // 55
48, 48, 48, 48, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 198, 124, 198, // 56
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 198, 126, 6, // 57
6, 6, 12, 120, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 24, 24, 0, 0, // 58
0, 24, 24, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 24, 24, 0, 0, // 59
0, 24, 24, 48, 0, 0, 0, 0 },
{ 0, 0, 0, 6, 12, 24, 48, 96, // 60
48, 24, 12, 6, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 126, 0, 0, // 61
126, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 96, 48, 24, 12, 6, // 62
12, 24, 48, 96, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 12, 24, 24, // 63
24, 0, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 124, 198, 198, 222, 222, // 64
222, 220, 192, 124, 0, 0, 0, 0 },
{ 0, 0, 16, 56, 108, 198, 198, 254, // 65
198, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 252, 102, 102, 102, 124, 102, // 66
102, 102, 102, 252, 0, 0, 0, 0 },
{ 0, 0, 60, 102, 194, 192, 192, 192, // 67
192, 194, 102, 60, 0, 0, 0, 0 },
{ 0, 0, 248, 108, 102, 102, 102, 102, // 68
102, 102, 108, 248, 0, 0, 0, 0 },
{ 0, 0, 254, 102, 98, 104, 120, 104, // 69
96, 98, 102, 254, 0, 0, 0, 0 },
{ 0, 0, 254, 102, 98, 104, 120, 104, // 70
96, 96, 96, 240, 0, 0, 0, 0 },
{ 0, 0, 60, 102, 194, 192, 192, 222, // 71
198, 198, 102, 58, 0, 0, 0, 0 },
{ 0, 0, 198, 198, 198, 198, 254, 198, // 72
198, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 60, 24, 24, 24, 24, 24, // 73
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 30, 12, 12, 12, 12, 12, // 74
204, 204, 204, 120, 0, 0, 0, 0 },
{ 0, 0, 230, 102, 102, 108, 120, 120, // 75
108, 102, 102, 230, 0, 0, 0, 0 },
{ 0, 0, 240, 96, 96, 96, 96, 96, // 76
96, 98, 102, 254, 0, 0, 0, 0 },
{ 0, 0, 198, 238, 254, 254, 214, 198, // 77
198, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 198, 230, 246, 254, 222, 206, // 78
198, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 198, 198, 198, // 79
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 252, 102, 102, 102, 124, 96, // 80
96, 96, 96, 240, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 198, 198, 198, // 81
198, 214, 222, 124, 12, 14, 0, 0 },
{ 0, 0, 252, 102, 102, 102, 124, 108, // 82
102, 102, 102, 230, 0, 0, 0, 0 },
{ 0, 0, 124, 198, 198, 96, 56, 12, // 83
6, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 126, 126, 90, 24, 24, 24, // 84
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 198, 198, 198, 198, 198, 198, // 85
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 198, 198, 198, 198, 198, 198, // 86
198, 108, 56, 16, 0, 0, 0, 0 },
{ 0, 0, 198, 198, 198, 198, 214, 214, // 87
214, 254, 238, 108, 0, 0, 0, 0 },
{ 0, 0, 198, 198, 108, 124, 56, 56, // 88
124, 108, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 102, 102, 102, 102, 60, 24, // 89
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 254, 198, 134, 12, 24, 48, // 90
96, 194, 198, 254, 0, 0, 0, 0 },
{ 0, 0, 60, 48, 48, 48, 48, 48, // 91
48, 48, 48, 60, 0, 0, 0, 0 },
{ 0, 0, 0, 128, 192, 224, 112, 56, // 92
28, 14, 6, 2, 0, 0, 0, 0 },
{ 0, 0, 60, 12, 12, 12, 12, 12, // 93
12, 12, 12, 60, 0, 0, 0, 0 },
{ 16, 56, 108, 198, 0, 0, 0, 0, // 94
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 95
0, 0, 0, 0, 0, 255, 0, 0 },
{ 0, 48, 24, 12, 0, 0, 0, 0, // 96
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 120, 12, 124, // 97
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 224, 96, 96, 120, 108, 102, // 98
102, 102, 102, 124, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 198, 192, // 99
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 28, 12, 12, 60, 108, 204, // 100
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 198, 254, // 101
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 28, 54, 50, 48, 120, 48, // 102
48, 48, 48, 120, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 118, 204, 204, // 103
204, 204, 204, 124, 12, 204, 120, 0 },
{ 0, 0, 224, 96, 96, 108, 118, 102, // 104
102, 102, 102, 230, 0, 0, 0, 0 },
{ 0, 0, 24, 24, 0, 56, 24, 24, // 105
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 6, 6, 0, 14, 6, 6, // 106
6, 6, 6, 6, 102, 102, 60, 0 },
{ 0, 0, 224, 96, 96, 102, 108, 120, // 107
120, 108, 102, 230, 0, 0, 0, 0 },
{ 0, 0, 56, 24, 24, 24, 24, 24, // 108
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 236, 254, 214, // 109
214, 214, 214, 198, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 220, 102, 102, // 110
102, 102, 102, 102, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 198, 198, // 111
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 220, 102, 102, // 112
102, 102, 102, 124, 96, 96, 240, 0 },
{ 0, 0, 0, 0, 0, 118, 204, 204, // 113
204, 204, 204, 124, 12, 12, 30, 0 },
{ 0, 0, 0, 0, 0, 220, 118, 102, // 114
96, 96, 96, 240, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 198, 96, // 115
56, 12, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 16, 48, 48, 252, 48, 48, // 116
48, 48, 54, 28, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 204, 204, 204, // 117
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 198, 198, 198, // 118
198, 198, 108, 56, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 198, 198, 214, // 119
214, 214, 254, 108, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 198, 108, 56, // 120
56, 56, 108, 198, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 198, 198, 198, // 121
198, 198, 198, 126, 6, 12, 248, 0 },
{ 0, 0, 0, 0, 0, 254, 204, 24, // 122
48, 96, 198, 254, 0, 0, 0, 0 },
{ 0, 0, 14, 24, 24, 24, 112, 24, // 123
24, 24, 24, 14, 0, 0, 0, 0 },
{ 0, 0, 24, 24, 24, 24, 24, 24, // 124
24, 24, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 112, 24, 24, 24, 14, 24, // 125
24, 24, 24, 112, 0, 0, 0, 0 },
{ 0, 118, 220, 0, 0, 0, 0, 0, // 126
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 16, 56, 108, 198, // 127
198, 198, 254, 0, 0, 0, 0, 0 },
{ 0, 0, 60, 102, 194, 192, 192, 192, // 128
192, 194, 102, 60, 24, 112, 0, 0 },
{ 0, 0, 204, 0, 0, 204, 204, 204, // 129
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 12, 24, 48, 0, 124, 198, 254, // 130
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 16, 56, 108, 0, 120, 12, 124, // 131
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 204, 0, 0, 120, 12, 124, // 132
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 96, 48, 24, 0, 120, 12, 124, // 133
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 56, 108, 56, 0, 120, 12, 124, // 134
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 198, 192, // 135
192, 192, 198, 124, 24, 112, 0, 0 },
{ 0, 16, 56, 108, 0, 124, 198, 254, // 136
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 198, 0, 0, 124, 198, 254, // 137
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 96, 48, 24, 0, 124, 198, 254, // 138
192, 192, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 102, 0, 0, 56, 24, 24, // 139
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 24, 60, 102, 0, 56, 24, 24, // 140
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 96, 48, 24, 0, 56, 24, 24, // 141
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 198, 0, 16, 56, 108, 198, 198, // 142
254, 198, 198, 198, 0, 0, 0, 0 },
{ 56, 108, 56, 16, 56, 108, 198, 198, // 143
254, 198, 198, 198, 0, 0, 0, 0 },
{ 12, 24, 0, 254, 102, 98, 104, 120, // 144
104, 98, 102, 254, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 236, 54, 54, // 145
126, 216, 216, 110, 0, 0, 0, 0 },
{ 0, 0, 62, 108, 204, 204, 254, 204, // 146
204, 204, 204, 206, 0, 0, 0, 0 },
{ 0, 16, 56, 108, 0, 124, 198, 198, // 147
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 198, 0, 0, 124, 198, 198, // 148
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 96, 48, 24, 0, 124, 198, 198, // 149
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 48, 120, 204, 0, 204, 204, 204, // 150
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 96, 48, 24, 0, 204, 204, 204, // 151
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 198, 0, 0, 198, 198, 198, // 152
198, 198, 198, 126, 6, 12, 120, 0 },
{ 0, 198, 0, 124, 198, 198, 198, 198, // 153
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 198, 0, 198, 198, 198, 198, 198, // 154
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 124, 206, 222, // 155
246, 230, 198, 124, 0, 0, 0, 0 },
{ 0, 56, 108, 100, 96, 240, 96, 96, // 156
96, 96, 230, 252, 0, 0, 0, 0 },
{ 0, 4, 124, 206, 206, 214, 214, 214, // 157
214, 230, 230, 124, 64, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 198, 108, 56, // 158
56, 108, 198, 0, 0, 0, 0, 0 },
{ 0, 14, 27, 24, 24, 24, 126, 24, // 159
24, 24, 216, 112, 0, 0, 0, 0 },
{ 0, 24, 48, 96, 0, 120, 12, 124, // 160
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 12, 24, 48, 0, 56, 24, 24, // 161
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 24, 48, 96, 0, 124, 198, 198, // 162
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 24, 48, 96, 0, 204, 204, 204, // 163
204, 204, 204, 118, 0, 0, 0, 0 },
{ 0, 0, 118, 220, 0, 220, 102, 102, // 164
102, 102, 102, 102, 0, 0, 0, 0 },
{ 118, 220, 0, 198, 230, 246, 254, 222, // 165
206, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 60, 108, 108, 62, 0, 126, // 166
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 56, 108, 108, 56, 0, 124, // 167
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 48, 48, 0, 48, 48, 96, // 168
192, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 124, 130, 178, 170, 178, 170, // 169
170, 130, 124, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 254, 6, // 170
6, 6, 6, 0, 0, 0, 0, 0 },
{ 0, 96, 224, 98, 102, 108, 24, 48, // 171
96, 220, 134, 12, 24, 62, 0, 0 },
{ 0, 96, 224, 98, 102, 108, 24, 48, // 172
102, 206, 154, 63, 6, 6, 0, 0 },
{ 0, 0, 24, 24, 0, 24, 24, 24, // 173
60, 60, 60, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 54, 108, 216, // 174
108, 54, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 216, 108, 54, // 175
108, 216, 0, 0, 0, 0, 0, 0 },
{ 17, 68, 17, 68, 17, 68, 17, 68, // 176
17, 68, 17, 68, 17, 68, 17, 68 },
{ 85, 170, 85, 170, 85, 170, 85, 170, // 177
85, 170, 85, 170, 85, 170, 85, 170 },
{ 221, 119, 221, 119, 221, 119, 221, 119, // 178
221, 119, 221, 119, 221, 119, 221, 119 },
{ 24, 24, 24, 24, 24, 24, 24, 24, // 179
24, 24, 24, 24, 24, 24, 24, 24 },
{ 24, 24, 24, 24, 24, 24, 24, 248, // 180
24, 24, 24, 24, 24, 24, 24, 24 },
{ 96, 192, 16, 56, 108, 198, 198, 254, // 181
198, 198, 198, 198, 0, 0, 0, 0 },
{ 124, 198, 16, 56, 108, 198, 198, 254, // 182
198, 198, 198, 198, 0, 0, 0, 0 },
{ 12, 6, 16, 56, 108, 198, 198, 254, // 183
198, 198, 198, 198, 0, 0, 0, 0 },
{ 0, 0, 124, 130, 154, 162, 162, 162, // 184
154, 130, 124, 0, 0, 0, 0, 0 },
{ 54, 54, 54, 54, 54, 246, 6, 246, // 185
54, 54, 54, 54, 54, 54, 54, 54 },
{ 54, 54, 54, 54, 54, 54, 54, 54, // 186
54, 54, 54, 54, 54, 54, 54, 54 },
{ 0, 0, 0, 0, 0, 254, 6, 246, // 187
54, 54, 54, 54, 54, 54, 54, 54 },
{ 54, 54, 54, 54, 54, 246, 6, 254, // 188
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 24, 24, 124, 198, 192, 192, // 189
198, 124, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 102, 102, 60, 24, 126, // 190
24, 126, 24, 24, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 248, // 191
24, 24, 24, 24, 24, 24, 24, 24 },
{ 24, 24, 24, 24, 24, 24, 24, 31, // 192
0, 0, 0, 0, 0, 0, 0, 0 },
{ 24, 24, 24, 24, 24, 24, 24, 255, // 193
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 255, // 194
24, 24, 24, 24, 24, 24, 24, 24 },
{ 24, 24, 24, 24, 24, 24, 24, 31, // 195
24, 24, 24, 24, 24, 24, 24, 24 },
{ 0, 0, 0, 0, 0, 0, 0, 255, // 196
0, 0, 0, 0, 0, 0, 0, 0 },
{ 24, 24, 24, 24, 24, 24, 24, 255, // 197
24, 24, 24, 24, 24, 24, 24, 24 },
{ 0, 0, 118, 220, 0, 120, 12, 124, // 198
204, 204, 204, 118, 0, 0, 0, 0 },
{ 118, 220, 0, 56, 108, 198, 198, 254, // 199
198, 198, 198, 198, 0, 0, 0, 0 },
{ 54, 54, 54, 54, 54, 55, 48, 63, // 200
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 63, 48, 55, // 201
54, 54, 54, 54, 54, 54, 54, 54 },
{ 54, 54, 54, 54, 54, 247, 0, 255, // 202
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 255, 0, 247, // 203
54, 54, 54, 54, 54, 54, 54, 54 },
{ 54, 54, 54, 54, 54, 55, 48, 55, // 204
54, 54, 54, 54, 54, 54, 54, 54 },
{ 0, 0, 0, 0, 0, 255, 0, 255, // 205
0, 0, 0, 0, 0, 0, 0, 0 },
{ 54, 54, 54, 54, 54, 247, 0, 247, // 206
54, 54, 54, 54, 54, 54, 54, 54 },
{ 0, 0, 0, 0, 198, 124, 198, 198, // 207
198, 198, 124, 198, 0, 0, 0, 0 },
{ 0, 0, 52, 24, 44, 6, 62, 102, // 208
102, 102, 102, 60, 0, 0, 0, 0 },
{ 0, 0, 248, 108, 102, 102, 246, 102, // 209
102, 102, 108, 248, 0, 0, 0, 0 },
{ 56, 108, 0, 254, 102, 98, 104, 120, // 210
104, 98, 102, 254, 0, 0, 0, 0 },
{ 0, 198, 0, 254, 102, 98, 104, 120, // 211
104, 98, 102, 254, 0, 0, 0, 0 },
{ 48, 24, 0, 254, 102, 98, 104, 120, // 212
104, 98, 102, 254, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 56, 24, 24, // 213
24, 24, 24, 60, 0, 0, 0, 0 },
{ 12, 24, 0, 60, 24, 24, 24, 24, // 214
24, 24, 24, 60, 0, 0, 0, 0 },
{ 60, 102, 0, 60, 24, 24, 24, 24, // 215
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 102, 0, 60, 24, 24, 24, 24, // 216
24, 24, 24, 60, 0, 0, 0, 0 },
{ 24, 24, 24, 24, 24, 24, 24, 248, // 217
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 31, // 218
24, 24, 24, 24, 24, 24, 24, 24 },
{ 255, 255, 255, 255, 255, 255, 255, 255, // 219
255, 255, 255, 255, 255, 255, 255, 255 },
{ 0, 0, 0, 0, 0, 0, 0, 255, // 220
255, 255, 255, 255, 255, 255, 255, 255 },
{ 0, 24, 24, 24, 24, 24, 0, 0, // 221
24, 24, 24, 24, 24, 0, 0, 0 },
{ 48, 24, 0, 60, 24, 24, 24, 24, // 222
24, 24, 24, 60, 0, 0, 0, 0 },
{ 255, 255, 255, 255, 255, 255, 255, 0, // 223
0, 0, 0, 0, 0, 0, 0, 0 },
{ 24, 48, 0, 124, 198, 198, 198, 198, // 224
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 120, 204, 204, 204, 216, 204, // 225
198, 198, 198, 204, 0, 0, 0, 0 },
{ 56, 108, 0, 124, 198, 198, 198, 198, // 226
198, 198, 198, 124, 0, 0, 0, 0 },
{ 48, 24, 0, 124, 198, 198, 198, 198, // 227
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 118, 220, 0, 124, 198, 198, // 228
198, 198, 198, 124, 0, 0, 0, 0 },
{ 118, 220, 0, 124, 198, 198, 198, 198, // 229
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 102, 102, 102, // 230
102, 102, 102, 124, 96, 96, 192, 0 },
{ 0, 0, 224, 96, 96, 124, 102, 102, // 231
102, 102, 102, 124, 96, 96, 240, 0 },
{ 0, 0, 240, 96, 124, 102, 102, 102, // 232
102, 124, 96, 240, 0, 0, 0, 0 },
{ 24, 48, 0, 198, 198, 198, 198, 198, // 233
198, 198, 198, 124, 0, 0, 0, 0 },
{ 56, 108, 0, 198, 198, 198, 198, 198, // 234
198, 198, 198, 124, 0, 0, 0, 0 },
{ 48, 24, 0, 198, 198, 198, 198, 198, // 235
198, 198, 198, 124, 0, 0, 0, 0 },
{ 0, 12, 24, 48, 0, 198, 198, 198, // 236
198, 198, 198, 126, 6, 12, 248, 0 },
{ 12, 24, 0, 102, 102, 102, 102, 60, // 237
24, 24, 24, 60, 0, 0, 0, 0 },
{ 0, 255, 0, 0, 0, 0, 0, 0, // 238
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 12, 24, 48, 0, 0, 0, 0, // 239
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 254, // 240
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 24, 24, 126, 24, // 241
24, 0, 0, 126, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 242
0, 0, 0, 0, 255, 0, 255, 0 },
{ 0, 224, 48, 98, 54, 236, 24, 48, // 243
102, 206, 154, 63, 6, 6, 0, 0 },
{ 0, 0, 127, 219, 219, 219, 123, 27, // 244
27, 27, 27, 27, 0, 0, 0, 0 },
{ 0, 124, 198, 96, 56, 108, 198, 198, // 245
108, 56, 12, 198, 124, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 24, 0, 126, // 246
0, 24, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 247
0, 0, 0, 24, 12, 120, 0, 0 },
{ 0, 56, 108, 108, 56, 0, 0, 0, // 248
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 198, 0, 0, 0, 0, 0, 0, // 249
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 24, // 250
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 24, 56, 24, 24, 24, 60, 0, // 251
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 124, 6, 60, 6, 6, 124, 0, // 252
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 60, 102, 12, 24, 50, 126, 0, // 253
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 126, 126, 126, 126, // 254
126, 126, 126, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, // 255
0, 0, 0, 0, 0, 0, 0, 0 }};
unsigned char sdl_font8x8[256][8] = {
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 0
{ 126, 129, 165, 129, 189, 153, 129, 126 }, // 1
{ 126, 255, 219, 255, 195, 231, 255, 126 }, // 2
{ 108, 254, 254, 254, 124, 56, 16, 0 }, // 3
{ 16, 56, 124, 254, 124, 56, 16, 0 }, // 4
{ 56, 124, 56, 254, 254, 214, 16, 56 }, // 5
{ 16, 56, 124, 254, 254, 124, 16, 56 }, // 6
{ 0, 0, 24, 60, 60, 24, 0, 0 }, // 7
{ 255, 255, 231, 195, 195, 231, 255, 255 }, // 8
{ 0, 60, 102, 66, 66, 102, 60, 0 }, // 9
{ 255, 195, 153, 189, 189, 153, 195, 255 }, // 10
{ 15, 7, 15, 125, 204, 204, 204, 120 }, // 11
{ 60, 102, 102, 102, 60, 24, 126, 24 }, // 12
{ 63, 51, 63, 48, 48, 112, 240, 224 }, // 13
{ 127, 99, 127, 99, 99, 103, 230, 192 }, // 14
{ 24, 219, 60, 231, 231, 60, 219, 24 }, // 15
{ 128, 224, 248, 254, 248, 224, 128, 0 }, // 16
{ 2, 14, 62, 254, 62, 14, 2, 0 }, // 17
{ 24, 60, 126, 24, 24, 126, 60, 24 }, // 18
{ 102, 102, 102, 102, 102, 0, 102, 0 }, // 19
{ 127, 219, 219, 123, 27, 27, 27, 0 }, // 20
{ 62, 97, 60, 102, 102, 60, 134, 124 }, // 21
{ 0, 0, 0, 0, 126, 126, 126, 0 }, // 22
{ 24, 60, 126, 24, 126, 60, 24, 255 }, // 23
{ 24, 60, 126, 24, 24, 24, 24, 0 }, // 24
{ 24, 24, 24, 24, 126, 60, 24, 0 }, // 25
{ 0, 24, 12, 254, 12, 24, 0, 0 }, // 26
{ 0, 48, 96, 254, 96, 48, 0, 0 }, // 27
{ 0, 0, 192, 192, 192, 254, 0, 0 }, // 28
{ 0, 36, 102, 255, 102, 36, 0, 0 }, // 29
{ 0, 24, 60, 126, 255, 255, 0, 0 }, // 30
{ 0, 255, 255, 126, 60, 24, 0, 0 }, // 31
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 32
{ 24, 60, 60, 24, 24, 0, 24, 0 }, // 33
{ 102, 102, 36, 0, 0, 0, 0, 0 }, // 34
{ 108, 108, 254, 108, 254, 108, 108, 0 }, // 35
{ 24, 62, 96, 60, 6, 124, 24, 0 }, // 36
{ 0, 198, 204, 24, 48, 102, 198, 0 }, // 37
{ 56, 108, 56, 118, 220, 204, 118, 0 }, // 38
{ 24, 24, 48, 0, 0, 0, 0, 0 }, // 39
{ 12, 24, 48, 48, 48, 24, 12, 0 }, // 40
{ 48, 24, 12, 12, 12, 24, 48, 0 }, // 41
{ 0, 102, 60, 231, 60, 102, 0, 0 }, // 42
{ 0, 24, 24, 126, 24, 24, 0, 0 }, // 43
{ 0, 0, 0, 0, 0, 24, 24, 48 }, // 44
{ 0, 0, 0, 126, 0, 0, 0, 0 }, // 45
{ 0, 0, 0, 0, 0, 24, 24, 0 }, // 46
{ 6, 12, 24, 48, 96, 192, 128, 0 }, // 47
{ 124, 198, 206, 222, 246, 230, 124, 0 }, // 48
{ 24, 56, 24, 24, 24, 24, 126, 0 }, // 49
{ 124, 198, 6, 28, 48, 102, 254, 0 }, // 50
{ 124, 198, 6, 60, 6, 198, 124, 0 }, // 51
{ 28, 60, 108, 204, 254, 12, 30, 0 }, // 52
{ 254, 192, 192, 252, 6, 198, 124, 0 }, // 53
{ 56, 96, 192, 252, 198, 198, 124, 0 }, // 54
{ 254, 198, 12, 24, 48, 48, 48, 0 }, // 55
{ 124, 198, 198, 124, 198, 198, 124, 0 }, // 56
{ 124, 198, 198, 126, 6, 12, 120, 0 }, // 57
{ 0, 24, 24, 0, 0, 24, 24, 0 }, // 58
{ 0, 24, 24, 0, 0, 24, 24, 48 }, // 59
{ 6, 12, 24, 48, 24, 12, 6, 0 }, // 60
{ 0, 0, 126, 0, 0, 126, 0, 0 }, // 61
{ 96, 48, 24, 12, 24, 48, 96, 0 }, // 62
{ 124, 198, 12, 24, 24, 0, 24, 0 }, // 63
{ 124, 198, 222, 222, 222, 192, 120, 0 }, // 64
{ 56, 108, 198, 254, 198, 198, 198, 0 }, // 65
{ 252, 102, 102, 124, 102, 102, 252, 0 }, // 66
{ 60, 102, 192, 192, 192, 102, 60, 0 }, // 67
{ 248, 108, 102, 102, 102, 108, 248, 0 }, // 68
{ 254, 98, 104, 120, 104, 98, 254, 0 }, // 69
{ 254, 98, 104, 120, 104, 96, 240, 0 }, // 70
{ 60, 102, 192, 192, 206, 102, 58, 0 }, // 71
{ 198, 198, 198, 254, 198, 198, 198, 0 }, // 72
{ 60, 24, 24, 24, 24, 24, 60, 0 }, // 73
{ 30, 12, 12, 12, 204, 204, 120, 0 }, // 74
{ 230, 102, 108, 120, 108, 102, 230, 0 }, // 75
{ 240, 96, 96, 96, 98, 102, 254, 0 }, // 76
{ 198, 238, 254, 254, 214, 198, 198, 0 }, // 77
{ 198, 230, 246, 222, 206, 198, 198, 0 }, // 78
{ 124, 198, 198, 198, 198, 198, 124, 0 }, // 79
{ 252, 102, 102, 124, 96, 96, 240, 0 }, // 80
{ 124, 198, 198, 198, 198, 206, 124, 14 }, // 81
{ 252, 102, 102, 124, 108, 102, 230, 0 }, // 82
{ 60, 102, 48, 24, 12, 102, 60, 0 }, // 83
{ 126, 126, 90, 24, 24, 24, 60, 0 }, // 84
{ 198, 198, 198, 198, 198, 198, 124, 0 }, // 85
{ 198, 198, 198, 198, 198, 108, 56, 0 }, // 86
{ 198, 198, 198, 214, 214, 254, 108, 0 }, // 87
{ 198, 198, 108, 56, 108, 198, 198, 0 }, // 88
{ 102, 102, 102, 60, 24, 24, 60, 0 }, // 89
{ 254, 198, 140, 24, 50, 102, 254, 0 }, // 90
{ 60, 48, 48, 48, 48, 48, 60, 0 }, // 91
{ 192, 96, 48, 24, 12, 6, 2, 0 }, // 92
{ 60, 12, 12, 12, 12, 12, 60, 0 }, // 93
{ 16, 56, 108, 198, 0, 0, 0, 0 }, // 94
{ 0, 0, 0, 0, 0, 0, 0, 255 }, // 95
{ 48, 24, 12, 0, 0, 0, 0, 0 }, // 96
{ 0, 0, 120, 12, 124, 204, 118, 0 }, // 97
{ 224, 96, 124, 102, 102, 102, 220, 0 }, // 98
{ 0, 0, 124, 198, 192, 198, 124, 0 }, // 99
{ 28, 12, 124, 204, 204, 204, 118, 0 }, // 100
{ 0, 0, 124, 198, 254, 192, 124, 0 }, // 101
{ 60, 102, 96, 248, 96, 96, 240, 0 }, // 102
{ 0, 0, 118, 204, 204, 124, 12, 248 }, // 103
{ 224, 96, 108, 118, 102, 102, 230, 0 }, // 104
{ 24, 0, 56, 24, 24, 24, 60, 0 }, // 105
{ 6, 0, 6, 6, 6, 102, 102, 60 }, // 106
{ 224, 96, 102, 108, 120, 108, 230, 0 }, // 107
{ 56, 24, 24, 24, 24, 24, 60, 0 }, // 108
{ 0, 0, 236, 254, 214, 214, 214, 0 }, // 109
{ 0, 0, 220, 102, 102, 102, 102, 0 }, // 110
{ 0, 0, 124, 198, 198, 198, 124, 0 }, // 111
{ 0, 0, 220, 102, 102, 124, 96, 240 }, // 112
{ 0, 0, 118, 204, 204, 124, 12, 30 }, // 113
{ 0, 0, 220, 118, 96, 96, 240, 0 }, // 114
{ 0, 0, 126, 192, 124, 6, 252, 0 }, // 115
{ 48, 48, 252, 48, 48, 54, 28, 0 }, // 116
{ 0, 0, 204, 204, 204, 204, 118, 0 }, // 117
{ 0, 0, 198, 198, 198, 108, 56, 0 }, // 118
{ 0, 0, 198, 214, 214, 254, 108, 0 }, // 119
{ 0, 0, 198, 108, 56, 108, 198, 0 }, // 120
{ 0, 0, 198, 198, 198, 126, 6, 252 }, // 121
{ 0, 0, 126, 76, 24, 50, 126, 0 }, // 122
{ 14, 24, 24, 112, 24, 24, 14, 0 }, // 123
{ 24, 24, 24, 24, 24, 24, 24, 0 }, // 124
{ 112, 24, 24, 14, 24, 24, 112, 0 }, // 125
{ 118, 220, 0, 0, 0, 0, 0, 0 }, // 126
{ 0, 16, 56, 108, 198, 198, 254, 0 }, // 127
{ 124, 198, 192, 192, 198, 124, 12, 120 }, // 128
{ 204, 0, 204, 204, 204, 204, 118, 0 }, // 129
{ 12, 24, 124, 198, 254, 192, 124, 0 }, // 130
{ 124, 130, 120, 12, 124, 204, 118, 0 }, // 131
{ 198, 0, 120, 12, 124, 204, 118, 0 }, // 132
{ 48, 24, 120, 12, 124, 204, 118, 0 }, // 133
{ 48, 48, 120, 12, 124, 204, 118, 0 }, // 134
{ 0, 0, 126, 192, 192, 126, 12, 56 }, // 135
{ 124, 130, 124, 198, 254, 192, 124, 0 }, // 136
{ 198, 0, 124, 198, 254, 192, 124, 0 }, // 137
{ 48, 24, 124, 198, 254, 192, 124, 0 }, // 138
{ 102, 0, 56, 24, 24, 24, 60, 0 }, // 139
{ 124, 130, 56, 24, 24, 24, 60, 0 }, // 140
{ 48, 24, 0, 56, 24, 24, 60, 0 }, // 141
{ 198, 56, 108, 198, 254, 198, 198, 0 }, // 142
{ 56, 108, 124, 198, 254, 198, 198, 0 }, // 143
{ 24, 48, 254, 192, 248, 192, 254, 0 }, // 144
{ 0, 0, 126, 18, 254, 144, 254, 0 }, // 145
{ 62, 108, 204, 254, 204, 204, 206, 0 }, // 146
{ 124, 130, 124, 198, 198, 198, 124, 0 }, // 147
{ 198, 0, 124, 198, 198, 198, 124, 0 }, // 148
{ 48, 24, 124, 198, 198, 198, 124, 0 }, // 149
{ 120, 132, 0, 204, 204, 204, 118, 0 }, // 150
{ 96, 48, 204, 204, 204, 204, 118, 0 }, // 151
{ 198, 0, 198, 198, 198, 126, 6, 252 }, // 152
{ 198, 56, 108, 198, 198, 108, 56, 0 }, // 153
{ 198, 0, 198, 198, 198, 198, 124, 0 }, // 154
{ 0, 2, 124, 206, 214, 230, 124, 128 }, // 155
{ 56, 108, 100, 240, 96, 102, 252, 0 }, // 156
{ 58, 108, 206, 214, 230, 108, 184, 0 }, // 157
{ 0, 198, 108, 56, 108, 198, 0, 0 }, // 158
{ 14, 27, 24, 60, 24, 216, 112, 0 }, // 159
{ 24, 48, 120, 12, 124, 204, 118, 0 }, // 160
{ 12, 24, 0, 56, 24, 24, 60, 0 }, // 161
{ 12, 24, 124, 198, 198, 198, 124, 0 }, // 162
{ 24, 48, 204, 204, 204, 204, 118, 0 }, // 163
{ 118, 220, 0, 220, 102, 102, 102, 0 }, // 164
{ 118, 220, 0, 230, 246, 222, 206, 0 }, // 165
{ 60, 108, 108, 62, 0, 126, 0, 0 }, // 166
{ 56, 108, 108, 56, 0, 124, 0, 0 }, // 167
{ 24, 0, 24, 24, 48, 99, 62, 0 }, // 168
{ 126, 129, 185, 165, 185, 165, 129, 126 }, // 169
{ 0, 0, 0, 254, 6, 6, 0, 0 }, // 170
{ 99, 230, 108, 126, 51, 102, 204, 15 }, // 171
{ 99, 230, 108, 122, 54, 106, 223, 6 }, // 172
{ 24, 0, 24, 24, 60, 60, 24, 0 }, // 173
{ 0, 51, 102, 204, 102, 51, 0, 0 }, // 174
{ 0, 204, 102, 51, 102, 204, 0, 0 }, // 175
{ 34, 136, 34, 136, 34, 136, 34, 136 }, // 176
{ 85, 170, 85, 170, 85, 170, 85, 170 }, // 177
{ 119, 221, 119, 221, 119, 221, 119, 221 }, // 178
{ 24, 24, 24, 24, 24, 24, 24, 24 }, // 179
{ 24, 24, 56, 248, 56, 24, 24, 24 }, // 180
{ 48, 96, 56, 108, 198, 254, 198, 0 }, // 181
{ 124, 130, 56, 108, 198, 254, 198, 0 }, // 182
{ 24, 12, 56, 108, 198, 254, 198, 0 }, // 183
{ 126, 129, 157, 161, 161, 157, 129, 126 }, // 184
{ 54, 54, 246, 6, 246, 54, 54, 54 }, // 185
{ 54, 54, 54, 54, 54, 54, 54, 54 }, // 186
{ 0, 0, 254, 6, 246, 54, 54, 54 }, // 187
{ 54, 54, 246, 6, 254, 0, 0, 0 }, // 188
{ 24, 24, 126, 192, 192, 126, 24, 24 }, // 189
{ 102, 102, 60, 126, 24, 126, 24, 24 }, // 190
{ 0, 0, 0, 240, 56, 24, 24, 24 }, // 191
{ 24, 24, 28, 15, 0, 0, 0, 0 }, // 192
{ 24, 24, 60, 255, 0, 0, 0, 0 }, // 193
{ 0, 0, 0, 255, 60, 24, 24, 24 }, // 194
{ 48, 48, 56, 63, 56, 48, 48, 48 }, // 195
{ 0, 0, 0, 255, 0, 0, 0, 0 }, // 196
{ 24, 24, 24, 60, 231, 60, 24, 24 }, // 197
{ 240, 120, 120, 120, 60, 60, 60, 28 }, // 198
{ 30, 60, 60, 60, 120, 120, 120, 112 }, // 199
{ 15, 63, 63, 120, 120, 0, 1, 3 }, // 200
{ 192, 224, 240, 240, 240, 240, 240, 224 }, // 201
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 202
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 203
{ 30, 30, 14, 15, 15, 7, 7, 0 }, // 204
{ 240, 240, 224, 224, 192, 192, 192, 0 }, // 205
{ 6, 13, 27, 55, 47, 127, 126, 30 }, // 206
{ 0, 252, 255, 255, 143, 119, 243, 3 }, // 207
{ 0, 1, 7, 143, 143, 207, 207, 199 }, // 208
{ 0, 248, 254, 254, 31, 15, 192, 248 }, // 209
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 210
{ 0, 0, 0, 0, 0, 0, 0, 0 }, // 211
{ 30, 30, 30, 31, 15, 7, 7, 1 }, // 212
{ 3, 3, 3, 7, 143, 255, 254, 252 }, // 213
{ 195, 192, 192, 207, 143, 7, 7, 1 }, // 214
{ 254, 255, 31, 15, 143, 254, 254, 248 }, // 215
{ 102, 0, 60, 24, 24, 24, 60, 0 }, // 216
{ 24, 24, 56, 240, 0, 0, 0, 0 }, // 217
{ 0, 0, 0, 15, 28, 24, 24, 24 }, // 218
{ 255, 255, 255, 255, 255, 255, 255, 255 }, // 219
{ 0, 0, 0, 0, 255, 255, 255, 255 }, // 220
{ 24, 24, 24, 0, 0, 24, 24, 24 }, // 221
{ 48, 24, 60, 24, 24, 24, 60, 0 }, // 222
{ 255, 255, 255, 255, 0, 0, 0, 0 }, // 223
{ 0, 0, 0, 0, 0, 0, 0, 255 }, // 224
{ 0, 0, 0, 0, 0, 255, 0, 255 }, // 225
{ 0, 0, 0, 255, 0, 255, 0, 255 }, // 226
{ 0, 255, 0, 255, 0, 255, 0, 255 }, // 227
{ 0, 255, 0, 255, 0, 255, 0, 0 }, // 228
{ 0, 255, 0, 255, 0, 0, 0, 0 }, // 229
{ 0, 255, 0, 0, 0, 0, 0, 0 }, // 230
{ 224, 128, 0, 0, 0, 0, 128, 224 }, // 231
{ 248, 254, 255, 255, 255, 255, 254, 248 }, // 232
{ 24, 48, 198, 198, 198, 198, 124, 0 }, // 233
{ 124, 130, 0, 198, 198, 198, 124, 0 }, // 234
{ 96, 48, 198, 198, 198, 198, 124, 0 }, // 235
{ 24, 48, 198, 198, 198, 126, 6, 252 }, // 236
{ 12, 24, 102, 102, 60, 24, 60, 0 }, // 237
{ 255, 0, 0, 0, 0, 0, 0, 0 }, // 238
{ 12, 24, 48, 0, 0, 0, 0, 0 }, // 239
{ 0, 0, 0, 126, 0, 0, 0, 0 }, // 240
{ 24, 24, 126, 24, 24, 0, 126, 0 }, // 241
{ 0, 0, 0, 0, 0, 255, 0, 255 }, // 242
{ 225, 50, 228, 58, 246, 42, 95, 134 }, // 243
{ 127, 219, 219, 123, 27, 27, 27, 0 }, // 244
{ 62, 97, 60, 102, 102, 60, 134, 124 }, // 245
{ 0, 24, 0, 126, 0, 24, 0, 0 }, // 246
{ 0, 0, 0, 0, 0, 24, 12, 56 }, // 247
{ 56, 108, 108, 56, 0, 0, 0, 0 }, // 248
{ 0, 198, 0, 0, 0, 0, 0, 0 }, // 249
{ 0, 0, 0, 24, 0, 0, 0, 0 }, // 250
{ 24, 56, 24, 24, 60, 0, 0, 0 }, // 251
{ 120, 12, 56, 12, 120, 0, 0, 0 }, // 252
{ 120, 12, 24, 48, 124, 0, 0, 0 }, // 253
{ 0, 0, 60, 60, 60, 60, 0, 0 }, // 254
{ 0, 0, 0, 0, 0, 0, 0, 0 }}; // 255
/*
unsigned char sdl_palette[256][3] = {
{ 0, 0, 0 }, // 0
{ 0, 0, 168 }, // 1
{ 0, 168, 0 }, // 2
{ 0, 168, 168 }, // 3
{ 168, 0, 0 }, // 4
{ 168, 0, 168 }, // 5
{ 168, 84, 0 }, // 6
{ 168, 168, 168 }, // 7
{ 84, 84, 84 }, // 8
{ 84, 84, 252 }, // 9
{ 84, 252, 84 }, // 10
{ 84, 252, 252 }, // 11
{ 252, 84, 84 }, // 12
{ 252, 84, 252 }, // 13
{ 252, 252, 84 }, // 14
{ 252, 252, 252 }, // 15
{ 0, 0, 0 }, // 16
{ 20, 20, 20 }, // 17
{ 32, 32, 32 }, // 18
{ 44, 44, 44 }, // 19
{ 56, 56, 56 }, // 20
{ 68, 68, 68 }, // 21
{ 80, 80, 80 }, // 22
{ 96, 96, 96 }, // 23
{ 112, 112, 112 }, // 24
{ 128, 128, 128 }, // 25
{ 144, 144, 144 }, // 26
{ 160, 160, 160 }, // 27
{ 180, 180, 180 }, // 28
{ 200, 200, 200 }, // 29
{ 224, 224, 224 }, // 30
{ 252, 252, 252 }, // 31
{ 0, 0, 252 }, // 32
{ 64, 0, 252 }, // 33
{ 124, 0, 252 }, // 34
{ 188, 0, 252 }, // 35
{ 252, 0, 252 }, // 36
{ 252, 0, 188 }, // 37
{ 252, 0, 124 }, // 38
{ 252, 0, 64 }, // 39
{ 252, 0, 0 }, // 40
{ 252, 64, 0 }, // 41
{ 252, 124, 0 }, // 42
{ 252, 188, 0 }, // 43
{ 252, 252, 0 }, // 44
{ 188, 252, 0 }, // 45
{ 124, 252, 0 }, // 46
{ 64, 252, 0 }, // 47
{ 0, 252, 0 }, // 48
{ 0, 252, 64 }, // 49
{ 0, 252, 124 }, // 50
{ 0, 252, 188 }, // 51
{ 0, 252, 252 }, // 52
{ 0, 188, 252 }, // 53
{ 0, 124, 252 }, // 54
{ 0, 64, 252 }, // 55
{ 124, 124, 252 }, // 56
{ 156, 124, 252 }, // 57
{ 188, 124, 252 }, // 58
{ 220, 124, 252 }, // 59
{ 252, 124, 252 }, // 60
{ 252, 124, 220 }, // 61
{ 252, 124, 188 }, // 62
{ 252, 124, 156 }, // 63
{ 252, 124, 124 }, // 64
{ 252, 156, 124 }, // 65
{ 252, 188, 124 }, // 66
{ 252, 220, 124 }, // 67
{ 252, 252, 124 }, // 68
{ 220, 252, 124 }, // 69
{ 188, 252, 124 }, // 70
{ 156, 252, 124 }, // 71
{ 124, 252, 124 }, // 72
{ 124, 252, 156 }, // 73
{ 124, 252, 188 }, // 74
{ 124, 252, 220 }, // 75
{ 124, 252, 252 }, // 76
{ 124, 220, 252 }, // 77
{ 124, 188, 252 }, // 78
{ 124, 156, 252 }, // 79
{ 180, 180, 252 }, // 80
{ 196, 180, 252 }, // 81
{ 216, 180, 252 }, // 82
{ 232, 180, 252 }, // 83
{ 252, 180, 252 }, // 84
{ 252, 180, 232 }, // 85
{ 252, 180, 216 }, // 86
{ 252, 180, 196 }, // 87
{ 252, 180, 180 }, // 88
{ 252, 196, 180 }, // 89
{ 252, 216, 180 }, // 90
{ 252, 232, 180 }, // 91
{ 252, 252, 180 }, // 92
{ 232, 252, 180 }, // 93
{ 216, 252, 180 }, // 94
{ 196, 252, 180 }, // 95
{ 180, 252, 180 }, // 96
{ 180, 252, 196 }, // 97
{ 180, 252, 216 }, // 98
{ 180, 252, 232 }, // 99
{ 180, 252, 252 }, // 100
{ 180, 232, 252 }, // 101
{ 180, 216, 252 }, // 102
{ 180, 196, 252 }, // 103
{ 0, 0, 112 }, // 104
{ 28, 0, 112 }, // 105
{ 56, 0, 112 }, // 106
{ 84, 0, 112 }, // 107
{ 112, 0, 112 }, // 108
{ 112, 0, 84 }, // 109
{ 112, 0, 56 }, // 110
{ 112, 0, 28 }, // 111
{ 112, 0, 0 }, // 112
{ 112, 28, 0 }, // 113
{ 112, 56, 0 }, // 114
{ 112, 84, 0 }, // 115
{ 112, 112, 0 }, // 116
{ 84, 112, 0 }, // 117
{ 56, 112, 0 }, // 118
{ 28, 112, 0 }, // 119
{ 0, 112, 0 }, // 120
{ 0, 112, 28 }, // 121
{ 0, 112, 56 }, // 122
{ 0, 112, 84 }, // 123
{ 0, 112, 112 }, // 124
{ 0, 84, 112 }, // 125
{ 0, 56, 112 }, // 126
{ 0, 28, 112 }, // 127
{ 56, 56, 112 }, // 128
{ 68, 56, 112 }, // 129
{ 84, 56, 112 }, // 130
{ 96, 56, 112 }, // 131
{ 112, 56, 112 }, // 132
{ 112, 56, 96 }, // 133
{ 112, 56, 84 }, // 134
{ 112, 56, 68 }, // 135
{ 112, 56, 56 }, // 136
{ 112, 68, 56 }, // 137
{ 112, 84, 56 }, // 138
{ 112, 96, 56 }, // 139
{ 112, 112, 56 }, // 140
{ 96, 112, 56 }, // 141
{ 84, 112, 56 }, // 142
{ 68, 112, 56 }, // 143
{ 56, 112, 56 }, // 144
{ 56, 112, 68 }, // 145
{ 56, 112, 84 }, // 146
{ 56, 112, 96 }, // 147
{ 56, 112, 112 }, // 148
{ 56, 96, 112 }, // 149
{ 56, 84, 112 }, // 150
{ 56, 68, 112 }, // 151
{ 80, 80, 112 }, // 152
{ 88, 80, 112 }, // 153
{ 96, 80, 112 }, // 154
{ 104, 80, 112 }, // 155
{ 112, 80, 112 }, // 156
{ 112, 80, 104 }, // 157
{ 112, 80, 96 }, // 158
{ 112, 80, 88 }, // 159
{ 112, 80, 80 }, // 160
{ 112, 88, 80 }, // 161
{ 112, 96, 80 }, // 162
{ 112, 104, 80 }, // 163
{ 112, 112, 80 }, // 164
{ 104, 112, 80 }, // 165
{ 96, 112, 80 }, // 166
{ 88, 112, 80 }, // 167
{ 80, 112, 80 }, // 168
{ 80, 112, 88 }, // 169
{ 80, 112, 96 }, // 170
{ 80, 112, 104 }, // 171
{ 80, 112, 112 }, // 172
{ 80, 104, 112 }, // 173
{ 80, 96, 112 }, // 174
{ 80, 88, 112 }, // 175
{ 0, 0, 64 }, // 176
{ 16, 0, 64 }, // 177
{ 32, 0, 64 }, // 178
{ 48, 0, 64 }, // 179
{ 64, 0, 64 }, // 180
{ 64, 0, 48 }, // 181
{ 64, 0, 32 }, // 182
{ 64, 0, 16 }, // 183
{ 64, 0, 0 }, // 184
{ 64, 16, 0 }, // 185
{ 64, 32, 0 }, // 186
{ 64, 48, 0 }, // 187
{ 64, 64, 0 }, // 188
{ 48, 64, 0 }, // 189
{ 32, 64, 0 }, // 190
{ 16, 64, 0 }, // 191
{ 0, 64, 0 }, // 192
{ 0, 64, 16 }, // 193
{ 0, 64, 32 }, // 194
{ 0, 64, 48 }, // 195
{ 0, 64, 64 }, // 196
{ 0, 48, 64 }, // 197
{ 0, 32, 64 }, // 198
{ 0, 16, 64 }, // 199
{ 32, 32, 64 }, // 200
{ 40, 32, 64 }, // 201
{ 48, 32, 64 }, // 202
{ 56, 32, 64 }, // 203
{ 64, 32, 64 }, // 204
{ 64, 32, 56 }, // 205
{ 64, 32, 48 }, // 206
{ 64, 32, 40 }, // 207
{ 64, 32, 32 }, // 208
{ 64, 40, 32 }, // 209
{ 64, 48, 32 }, // 210
{ 64, 56, 32 }, // 211
{ 64, 64, 32 }, // 212
{ 56, 64, 32 }, // 213
{ 48, 64, 32 }, // 214
{ 40, 64, 32 }, // 215
{ 32, 64, 32 }, // 216
{ 32, 64, 40 }, // 217
{ 32, 64, 48 }, // 218
{ 32, 64, 56 }, // 219
{ 32, 64, 64 }, // 220
{ 32, 56, 64 }, // 221
{ 32, 48, 64 }, // 222
{ 32, 40, 64 }, // 223
{ 44, 44, 64 }, // 224
{ 48, 44, 64 }, // 225
{ 52, 44, 64 }, // 226
{ 60, 44, 64 }, // 227
{ 64, 44, 64 }, // 228
{ 64, 44, 60 }, // 229
{ 64, 44, 52 }, // 230
{ 64, 44, 48 }, // 231
{ 64, 44, 44 }, // 232
{ 64, 48, 44 }, // 233
{ 64, 52, 44 }, // 234
{ 64, 60, 44 }, // 235
{ 64, 64, 44 }, // 236
{ 60, 64, 44 }, // 237
{ 52, 64, 44 }, // 238
{ 48, 64, 44 }, // 239
{ 44, 64, 44 }, // 240
{ 44, 64, 48 }, // 241
{ 44, 64, 52 }, // 242
{ 44, 64, 60 }, // 243
{ 44, 64, 64 }, // 244
{ 44, 60, 64 }, // 245
{ 44, 52, 64 }, // 246
{ 44, 48, 64 }, // 247
{ 0, 0, 0 }, // 248
{ 0, 0, 0 }, // 249
{ 0, 0, 0 }, // 250
{ 0, 0, 0 }, // 251
{ 0, 0, 0 }, // 252
{ 0, 0, 0 }, // 253
{ 0, 0, 0 }, // 254
{ 112, 97, 108 }}; // 255
*/
#define _SCN2BX_LAST_ 0x64
Bit32u scancodes2bx[_SCN2BX_LAST_][2] = {
{0, 0}, // 00 - 0
{0, BX_KEY_ESC}, // 01 - 1
{0, BX_KEY_1}, // 02 - 2
{0, BX_KEY_2}, // 03 - 3
{0, BX_KEY_3}, // 04 - 4
{0, BX_KEY_4}, // 05 - 5
{0, BX_KEY_5}, // 06 - 6
{0, BX_KEY_6}, // 07 - 7
{0, BX_KEY_7}, // 08 - 8
{0, BX_KEY_8}, // 09 - 9
{0, BX_KEY_9}, // 0A - 10
{0, BX_KEY_0}, // 0B - 11
{0, BX_KEY_MINUS}, // 0C - 12
{0, BX_KEY_EQUALS}, // 0D - 13
{0, BX_KEY_BACKSPACE}, // 0E - 14
{0, BX_KEY_TAB}, // 0F - 15
{0, BX_KEY_Q}, // 10 - 16
{0, BX_KEY_W}, // 11 - 17
{0, BX_KEY_E}, // 12 - 18
{0, BX_KEY_R}, // 13 - 19
{0, BX_KEY_T}, // 14 - 20
{0, BX_KEY_Y}, // 15 - 21
{0, BX_KEY_U}, // 16 - 22
{0, BX_KEY_I}, // 17 - 23
{0, BX_KEY_O}, // 18 - 24
{0, BX_KEY_P}, // 19 - 25
{0, BX_KEY_LEFT_BRACKET}, // 1A - 26
{0, BX_KEY_RIGHT_BRACKET}, // 1B - 27
{0, BX_KEY_ENTER}, // 1C - 28
{1, BX_KEY_CTRL_L}, // 1D - 29
{0, BX_KEY_A}, // 1E - 30
{0, BX_KEY_S}, // 1F - 31
{0, BX_KEY_D}, // 20 - 32
{0, BX_KEY_F}, // 21 - 33
{0, BX_KEY_G}, // 22 - 34
{0, BX_KEY_H}, // 23 - 35
{0, BX_KEY_J}, // 24 - 36
{0, BX_KEY_K}, // 25 - 37
{0, BX_KEY_L}, // 26 - 38
{0, BX_KEY_SEMICOLON}, // 27 - 39
{0, BX_KEY_SINGLE_QUOTE}, // 28 - 40
{0, BX_KEY_GRAVE}, // 29 - 41
{0, BX_KEY_SHIFT_L}, // 2A - 42
{0, BX_KEY_BACKSLASH}, // 2B - 43
{0, BX_KEY_Z}, // 2C - 44
{0, BX_KEY_X}, // 2D - 45
{0, BX_KEY_C}, // 2E - 46
{0, BX_KEY_V}, // 2F - 47
{0, BX_KEY_B}, // 30 - 48
{0, BX_KEY_N}, // 31 - 49
{0, BX_KEY_M}, // 32 - 50
{0, BX_KEY_COMMA}, // 33 - 51
{0, BX_KEY_PERIOD}, // 34 - 52
{0, BX_KEY_SLASH}, // 35 - 53
{0, BX_KEY_SHIFT_R}, // 36 - 54
{40, BX_KEY_PRINT}, // 37 - 55 (Print, CTRL+Print, KP_MULTIPLY)
{2, BX_KEY_ALT_L}, // 38 - 56
{0, BX_KEY_SPACE}, // 39 - 57
{0, BX_KEY_CAPS_LOCK}, // 3A - 58
{0, BX_KEY_F1}, // 3B - 59
{0, BX_KEY_F2}, // 3C - 60
{0, BX_KEY_F3}, // 3D - 61
{0, BX_KEY_F4}, // 3E - 62
{0, BX_KEY_F5}, // 3F - 63
{0, BX_KEY_F6}, // 40 - 64
{0, BX_KEY_F7}, // 41 - 65
{0, BX_KEY_F8}, // 42 - 66
{0, BX_KEY_F9}, // 43 - 67
{0, BX_KEY_F10}, // 44 - 68
{0, BX_KEY_NUM_LOCK}, // 45 - 69
{3, BX_KEY_SCRL_LOCK}, // 46 - 70
{4, BX_KEY_HOME}, // 47 - 71
{5, BX_KEY_UP}, // 48 - 72
{6, BX_KEY_PAGE_UP}, // 49 - 73
{0, BX_KEY_KP_SUBTRACT}, // 4A - 74
{7, BX_KEY_LEFT}, // 4B - 75
{0, BX_KEY_KP_5}, // 4C - 76
{8, BX_KEY_RIGHT}, // 4D - 77
{0, BX_KEY_KP_ADD}, // 4E - 78
{9, BX_KEY_END}, // 4F - 79
{10, BX_KEY_DOWN}, // 50 - 80
{11, BX_KEY_PAGE_DOWN}, // 51 - 81
{12, BX_KEY_INSERT}, // 52 - 82
{0, BX_KEY_DELETE}, // 53 - 83
{0, BX_KEY_ALT_SYSREQ}, // 54 - 84
{0, 0}, // 55 - 85
{0, BX_KEY_LEFT_BACKSLASH}, // 56 - 86 non-US unlabeled key
{0, BX_KEY_F11}, // 57 - 87
{0, BX_KEY_F12}, // 58 - 88
{0, 0}, // 59 - 89
{0, 0}, // 5A - 90
{0, BX_KEY_WIN_L}, // 5B - 91
{0, BX_KEY_WIN_R}, // 5C - 92
{0, BX_KEY_MENU}, // 5D - 93
{0, BX_KEY_POWER_POWER}, // 5E - 94
{0, BX_KEY_POWER_SLEEP}, // 5F - 95
{0, 0}, // 60 - 96
{0, 0}, // 61 - 97
{0, 0}, // 62 - 98
{0, BX_KEY_POWER_WAKE} }; // 63 - 99