]> 4ch.mooo.com Git - 16.git/commitdiff
too many errors!!
authorsparky4 <sparky4@cock.li>
Tue, 23 Jun 2015 16:52:55 +0000 (11:52 -0500)
committersparky4 <sparky4@cock.li>
Tue, 23 Jun 2015 16:52:55 +0000 (11:52 -0500)
modified:   16/cawat/16_mm.c

16/cawat/16_mm.c

index cf36d26c7a497360332439fb8b026000dc397715..2da0d65806a341f2e863bc953094fcb5fcf21f13 100644 (file)
@@ -181,11 +181,13 @@ boolean MML_CheckForEMS (void)
 void MML_SetupEMS (void)\r
 {\r
        char    str[80],str2[10];\r
-       unsigned        error;\r
+       unsigned        err;
+       struct REGS CPURegs;\r
 \r
        totalEMSpages = freeEMSpages = EMSpageframe = EMSpagesmapped = 0;\r
 \r
-       __asm {\r
+       __asm
+               {\r
                mov     ah,EMS_STATUS\r
                int     EMS_INT                                         // make sure EMS hardware is present\r
                or      ah,ah\r
@@ -226,11 +228,11 @@ getpages:
                mov     [EMShandle],dx
                jmp End
 error:\r
-               error = _AH;\r
-               strcpy (str,"MML_SetupEMS: EMS error 0x");\r
-               itoa(error,str2,16);\r
-               strcpy (str,str2);\r
-               printf("%s\n",str);
+//             err = CPURegs.h.ah;\r
+//             strcpy (str,"MML_SetupEMS: EMS error 0x");\r
+//             itoa(err,str2,16);\r
+//             strcpy (str,str2);\r
+//             printf("%s\n",str);
                jmp End
 noEMS:
 End:\r
@@ -373,7 +375,8 @@ getmemory:
 \r
 gotone:\r
        mov     [base],bx\r
-       mov     [size],dx\r
+       mov     [size],dx
+       done:\r
        }\r
        MML_UseSpace (base,size);\r
        mminfo.XMSmem += size*16;\r
@@ -381,8 +384,6 @@ gotone:
        numUMBs++;\r
        if (numUMBs < MAXUMBS)\r
                goto getmemory;\r
-\r
-done:;\r
 }\r
 \r
 \r