21 |
*/ |
*/ |
22 |
|
|
23 |
#include "buffer.h" |
#include "buffer.h" |
24 |
|
#include "utils.h" |
25 |
|
|
26 |
#include "p3/init.h" |
#include "p3/init.h" |
27 |
#include "p3/header.h" |
#include "p3/header.h" |
33 |
p3_init30_t init_data; |
p3_init30_t init_data; |
34 |
|
|
35 |
/* |
/* |
36 |
* FIXME: fields are in big endian, systems in little endian should take care |
* fields are in big endian, systems in little endian should take care |
37 |
* of this |
* of this |
38 |
*/ |
*/ |
39 |
init_data = (p3_init30_t) |
init_data = (p3_init30_t) |
48 |
5, /* release_month alway 5 */ |
5, /* release_month alway 5 */ |
49 |
15, /* release_day alway 15 */ |
15, /* release_day alway 15 */ |
50 |
0, /* customer_class always 0 */ |
0, /* customer_class always 0 */ |
51 |
0x4db26e25, /* timestamp */ |
htolel(0x4db26e25), /* timestamp */ |
52 |
0x00c0, /* dos version :) */ |
htoles(0x00c0), /* dos version :) */ |
53 |
0xc014, /* flags */ |
htoles(0xc014), /* flags */ |
54 |
8, /* video (8=??) */ |
8, /* video (8=??) */ |
55 |
5, /* processor (5=??) */ |
5, /* processor (5=??) */ |
56 |
0, /* media ??? */ |
0, /* media ??? */ |
57 |
0x00000a04, /* windows version :) */ |
htolel(0x00000a04), /* windows version :) */ |
58 |
1, /* windows mode 1=enhanced :) */ |
1, /* windows mode 1=enhanced :) */ |
59 |
1024, 768, 65535, /* Resolution 1024x768, 16/24 bits */ |
|
60 |
|
htoles(1024), |
61 |
|
htoles(768), |
62 |
|
htoles(65535), /* Resolution 1024x768, 16/24 bits */ |
63 |
|
|
64 |
0, /* filler always 0 */ |
0, /* filler always 0 */ |
65 |
0, /* region */ |
0, /* region */ |
66 |
LANGUAGE_FRENCH, /* the language */ |
LANGUAGE_FRENCH, /* the language */ |