]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_mm.c
ok
[16.git] / src / lib / 16_mm.c
index 070db38d99050be8d98f2f9892f96704dec9b582..dd754efdd6fe2369c36c01cd6bad27caff633c24 100644 (file)
@@ -143,6 +143,7 @@ unsigned MML_SetupEMS(mminfo_t *mm)
        union REGS CPURegs;
 
        unsigned int EMSVer = 0;
+       byte    EMS_status;
        unsigned        totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
        totalEMSpages = freeEMSpages = EMSpageframe = EMSpagesmapped = 0;
 
@@ -151,6 +152,7 @@ unsigned MML_SetupEMS(mminfo_t *mm)
                mov     ah,EMS_STATUS
                int     EMS_INT                                         // make sure EMS hardware is present
                or      ah,ah
+               mov     [EMS_status],ah
                jnz     error
 
                mov     ah,EMS_VERSION
@@ -1111,11 +1113,8 @@ CA_OpenDebug ();
                end = scan->start+scan->length-1;
                                modexhlin(page, scan->start, (unsigned)end, chy, color);
 //++++         VW_Hlin(scan->start,(unsigned)end,0,color);
-//void VW_Plot(unsigned x, unsigned y, unsigned color);
-//void VW_Hlin(unsigned xl, unsigned xh, unsigned y, unsigned color);
 
 //++++         VW_Plot(scan->start,0,15);
-                               //modexputPixel(page, scan->start, chy, 15);
                                modexClearRegion(page, scan->start, chy, 4, 4, 15);
                if(scan->next->start > end+1)
 //++++                 VW_Hlin(end+1,scan->next->start,0,0);   // black = free
@@ -1136,7 +1135,7 @@ strcat (scratch,str);
 strcat (scratch,"\n");
 write(debughandle,scratch,strlen(scratch));
 //modexprint(page, chx, chy, 1, 0, 24, &scratch);
-//chy+=4;
+chy+=4;
 //fprintf(stdout, "%s", scratch);
 //****#endif