保存コミット
@@ -1,5 +1,7 @@ | ||
1 | 1 | #include "core.h" |
2 | 2 | |
3 | +struct SYSTEM system; | |
4 | + | |
3 | 5 | void CHNMain(void) |
4 | 6 | { |
5 | 7 | unsigned char s[24]; |
@@ -7,7 +9,7 @@ | ||
7 | 9 | struct VESAINFO *vinfo = (struct VESAINFO *) ADR_VESAINFO; |
8 | 10 | struct FIFO32 sysfifo; |
9 | 11 | struct MOUSE_DECODE mdec; |
10 | - struct SYSTEM system; | |
12 | + | |
11 | 13 | struct MEMMAN *memman = (struct MEMMAN *) MEMMAN_ADDR; |
12 | 14 | struct SHEET32 *sht_back, *sht_mouse; |
13 | 15 | struct WINDOWINFO *winfo1; |
@@ -3,6 +3,9 @@ | ||
3 | 3 | |
4 | 4 | void init_system(struct SYSTEM *system) |
5 | 5 | { |
6 | + struct VESAINFO *vesa = (struct VESAINFO *) ADR_VESAINFO; | |
7 | + struct BOOTINFO *boot = (struct BOOTINFO *) ADR_BOOTINFO; | |
8 | + | |
6 | 9 | system->io.clts = clts; |
7 | 10 | system->io.fnsave = fnsave; |
8 | 11 | system->io.frstore = frstor; |
@@ -116,6 +119,11 @@ | ||
116 | 119 | system->data.fifo.put = fifo32_put; |
117 | 120 | system->data.fifo.get = fifo32_get; |
118 | 121 | system->data.fifo.status = fifo32_status; |
119 | - | |
122 | + | |
123 | + system->info.vesa = *vesa; | |
124 | + system->info.boot = *boot; | |
125 | + | |
126 | + | |
127 | + | |
120 | 128 | return; |
121 | 129 | } |
@@ -350,6 +350,15 @@ | ||
350 | 350 | int (*status)(struct FIFO32 *fifo); |
351 | 351 | } fifo; |
352 | 352 | } data; |
353 | + struct INFOS { | |
354 | + struct VESAINFO vesa; | |
355 | + struct BOOTINFO boot; | |
356 | + } info; | |
357 | + struct FIFO32 sysfifo; | |
358 | + struct MOUSE_DECODE mouse_dec; | |
359 | + int fifobuf[256]; | |
360 | + struct MEMMAN memman; | |
361 | + struct SHEET32 *sht_back; | |
353 | 362 | }; |
354 | 363 | |
355 | 364 | /*関数宣言*/ |