cos2000v2/lib/modes.c

119 lines
3.9 KiB
C

#define maxgraphmode 5
#define maxtextmode 5
static mode_def textmodes[maxtextmode] = {
/*MODE 0, 40*25 16 couleurs */
{
0x67,0x00,0x03,0x08,0x03,0x00,0x02,
0x2D,0x27,0x28,0x90,0x2B,0x0A,0xBF,0x1F,0x00,0x4F,0x0D,0x0E,0x00,0x00,0x00,0x00,
0x9C,0x8E,0x8F,0x14,0x1F,0x96,0xB9,0xA3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
0x0C,0x00,0x0F,0x08,0x00,
40,25
},
/*MODE 1, 80*25 16 couleurs */
{
0x67,0x00,0x03,0x00,0x03,0x00,0x02,
0x5F,0x4F,0x50,0x82,0x55,0x81,0xBF,0x1F,0x00,0x4F,0x0D,0x0E,0x00,0x00,0x00,0x00,
0x9C,0x0E,0x8F,0x28,0x1F,0x96,0xB9,0xA3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
0x0C,0x00,0x0F,0x08,0x00,
80,25
},
/*MODE 2, 80*50 16 couleurs */
{
0x63,0x00,0x03,0x01,0x03,0x01,0x02,
0x5F,0x4F,0x50,0x82,0x55,0x81,0xBF,0x1F,0x00,0x47,0x06,0x07,0x00,0x00,0x00,0x00,
0x9C,0x8E,0x8F,0x28,0x1F,0x96,0xB9,0xA3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,0x10,0x11,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
0xCF,0x00,0x0F,0x00,0x00,
80,50
},
/*MODE 3, 100*50 16 couleurs */
{
0x67,0x00,0x03,0x01,0x03,0x01,0x02,
0x70,0x63,0x64,0x85,0x68,0x84,0xBF,0x1F,0x00,0x47,0x06,0x07,0x00,0x00,0x00,0x00,
0x9C,0x8E,0x8F,0x32,0x1F,0x96,0xB9,0xA3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,0x10,0x11,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
0x0C,0x00,0x0F,0x00,0x00,
100,50
},
/*MODE 4, 100*60 16 couleurs */
{
0xA7,0x00,0x03,0x01,0x03,0x01,0x02,
0x70,0x63,0x64,0x85,0x68,0x84,0xFF,0x1F,0x00,0x47,0x06,0x07,0x00,0x00,0x00,0x00,
0xE7,0x8E,0xDF,0x32,0x1F,0xDF,0xE5,0xA3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x10,0x0E,0x00,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,0x10,0x11,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
0x0C,0x00,0x0F,0x00,0x00,
100,60
}
};
static mode_def graphmodes[maxgraphmode] = {
/*MODE 80, 320*200 256 couleurs */
{
0x63,0x00,0x03,0x01,0x0F,0x00,0x06,
0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,
0x9C,0x0E,0x8F,0x28,0x00,0x96,0xB9,0xE3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x41,0x00,0x0F,0x00,0x00,
40,25
},
/*MODE 81, 320*400 256 couleurs */
{
0x63,0x00,0x03,0x01,0x0F,0x00,0x06,
0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
0x9C,0x8E,0x8F,0x28,0x00,0x96,0xB9,0xE3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x41,0x00,0x0F,0x00,0x00,
40,50
},
/*MODE 82, 320*480 256 couleurs */
{
0xE3,0x00,0x03,0x01,0x0F,0x00,0x06,
0x5F,0x4F,0x50,0x82,0x54,0x80,0x0B,0x3E,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
0xEA,0xAC,0xDF,0x28,0x00,0xE7,0x06,0xE3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x41,0x00,0x0F,0x00,0x00,
40,60
},
/*MODE 83, 360*480 256 couleurs */
{
0xE7,0x00,0x03,0x01,0x0F,0x00,0x06,
0x6B,0x59,0x5A,0x8E,0x5E,0x8A,0x0D,0x3E,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
0xEA,0xAC,0xDF,0x2D,0x00,0xE7,0x06,0xE3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x41,0x00,0x0F,0x00,0x00,
45,60
},
/*MODE 84, 400*600 256 couleurs */
{
0xE7,0x00,0x03,0x01,0x0F,0x00,0x06,
0x74,0x63,0x64,0x97,0x68,0x95,0x86,0xF0,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,
0x5B,0x8D,0x57,0x32,0x00,0x60,0x80,0xE3,0xFF,
0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x41,0x00,0x0F,0x00,0x00,
50,75
}
};