]> 4ch.mooo.com Git - 16.git/commitdiff
====ems was broke on previous builds of this day so reverted something back====
authorsparky4 <sparky4@cock.li>
Wed, 28 Sep 2016 20:25:14 +0000 (15:25 -0500)
committersparky4 <sparky4@cock.li>
Wed, 28 Sep 2016 20:25:14 +0000 (15:25 -0500)
src/lib/16_pm.c

index 29156f92155d635feed9b7d68c0e7d60a25cf24e..090145a17246750b83b0be5352e9a3e995e53a5d 100755 (executable)
@@ -92,17 +92,17 @@ PML_MapEMS(word logical, byte physical, global_game_variables_t *gvar)
 \r
        __asm {\r
                mov     ah,EMS_MAPPAGE\r
-               mov     al,[physical]\r
-               mov     bx,[logical]\r
-               mov     dx,[EMShandle]\r
+               mov     al,physical\r
+               mov     bx,logical\r
+               mov     dx,EMShandle\r
                int     EMS_INT\r
                or      ah,ah\r
-               jnz     error\r
-               jmp     End\r
+               jnz     errorme\r
+               jmp     Endme\r
 #ifdef __BORLANDC__\r
        }\r
 #endif\r
-               error:\r
+               errorme:\r
 #ifdef __BORLANDC__\r
        __asm {\r
 #endif\r
@@ -111,7 +111,7 @@ PML_MapEMS(word logical, byte physical, global_game_variables_t *gvar)
 #ifdef __BORLANDC__\r
        }\r
 #endif\r
-               End:\r
+               Endme:\r
 #ifdef __WATCOMC__\r
        }\r
 #endif\r
@@ -266,8 +266,9 @@ PML_StartupEMS(global_game_variables_t *gvar)
 \r
        if(errorflag==false)\r
        {\r
-       gvar->pm.emm.EMSAvail = EMSAvail;\r
-       gvar->mmi.EMSmem = gvar->pm.emm.EMSAvail * (dword)EMSPageSize;\r
+       //gvar->pm.emm.EMSAvail = EMSAvail;\r
+       //gvar->mmi.EMSmem = gvar->pm.emm.EMSAvail * (dword)EMSPageSize;\r
+       gvar->mmi.EMSmem = EMSAvail * (dword)EMSPageSize;\r
 \r
        // Initialize EMS mapping cache\r
        for (i = 0;i < EMSFrameCount;i++)\r