wwww
リビジョン | 34d55bd3f03eabdfc0e13c00b85e2091a211488a (tree) |
---|---|
日時 | 2016-04-19 02:18:04 |
作者 | sparky4 <sparky4@cock...> |
コミッター | sparky4 |
16.c needs to probe DOS and VGA before using modex library. -repo sync-
@@ -34,7 +34,6 @@ global_game_variables_t gvar; | ||
34 | 34 | |
35 | 35 | void main(int argc, char near *argv[]) |
36 | 36 | { |
37 | - struct vga_mode_params cm; | |
38 | 37 | //JMOJI |
39 | 38 | static byte e; |
40 | 39 | //word ri; |
@@ -96,7 +95,6 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ | ||
96 | 95 | gvar.video.page[0].width += (16*2); |
97 | 96 | gvar.video.page[0].height += (16*2); |
98 | 97 | modexShowPage(&gvar.video.page[0]); |
99 | - vga_read_crtc_mode(&cm); | |
100 | 98 | // NTS: We're in Mode-X now. printf() is useless. Do not use printf(). Or INT 10h text printing. Or DOS console output. |
101 | 99 | //modexprint(16, 16, 1, 15, "wwww"); |
102 | 100 | //getch(); |
@@ -119,11 +117,13 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ | ||
119 | 117 | } |
120 | 118 | sprintf(pee, "%zc", e); |
121 | 119 | modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e); |
122 | - chx+=9; | |
120 | + chx+=8; | |
123 | 121 | colpee++; |
124 | 122 | if(colpee>=32+24) colpee=32; |
125 | 123 | } |
126 | 124 | getch(); |
125 | + modexprint(&gvar.video.page[0], 0, 0, 1, 0, colpee, &rose); | |
126 | + getch(); | |
127 | 127 | //modexprint(100, 100, 1, 47, 0, "wwww"); |
128 | 128 | // modexprint(0, 0, 1, 0, colpee, &rose); |
129 | 129 | //++++ modexprint(&gvar.video.page[0], 0, 0, 0, 0, colpee, &ibmlogo); |
@@ -136,6 +136,4 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ | ||
136 | 136 | printf("\n%s\n", rose); |
137 | 137 | //printf("\nh=%d\n", '8'); |
138 | 138 | // printf("\n%c\n", e); |
139 | - printf("cm.offset=%d\n", cm.offset); | |
140 | - printf("vga_state.vga_stride=%d\n", vga_state.vga_stride); | |
141 | 139 | } |
@@ -601,7 +601,8 @@ void shinku(map_view_t *pip, global_game_variables_t *gv) | ||
601 | 601 | //t=(((*(gv->clock))-gv->clock_start) /18.2); |
602 | 602 | sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv)); |
603 | 603 | printf("%s", gv->pee); |
604 | - //modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee); | |
604 | + //FIXME PLEASE!! | |
605 | + //:modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee); | |
605 | 606 | //(gv->clock_start)=*(gv->clock); |
606 | 607 | gv->kurokku.tiku=0; |
607 | 608 | } |