From c34d3cbaba5f98c0a8fc722228fccf555dd25c52 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 28 Sep 2016 15:25:14 -0500 Subject: [PATCH] ====ems was broke on previous builds of this day so reverted something back==== --- src/lib/16_pm.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/lib/16_pm.c b/src/lib/16_pm.c index 29156f92..090145a1 100755 --- a/src/lib/16_pm.c +++ b/src/lib/16_pm.c @@ -92,17 +92,17 @@ PML_MapEMS(word logical, byte physical, global_game_variables_t *gvar) __asm { mov ah,EMS_MAPPAGE - mov al,[physical] - mov bx,[logical] - mov dx,[EMShandle] + mov al,physical + mov bx,logical + mov dx,EMShandle int EMS_INT or ah,ah - jnz error - jmp End + jnz errorme + jmp Endme #ifdef __BORLANDC__ } #endif - error: + errorme: #ifdef __BORLANDC__ __asm { #endif @@ -111,7 +111,7 @@ PML_MapEMS(word logical, byte physical, global_game_variables_t *gvar) #ifdef __BORLANDC__ } #endif - End: + Endme: #ifdef __WATCOMC__ } #endif @@ -266,8 +266,9 @@ PML_StartupEMS(global_game_variables_t *gvar) if(errorflag==false) { - gvar->pm.emm.EMSAvail = EMSAvail; - gvar->mmi.EMSmem = gvar->pm.emm.EMSAvail * (dword)EMSPageSize; + //gvar->pm.emm.EMSAvail = EMSAvail; + //gvar->mmi.EMSmem = gvar->pm.emm.EMSAvail * (dword)EMSPageSize; + gvar->mmi.EMSmem = EMSAvail * (dword)EMSPageSize; // Initialize EMS mapping cache for (i = 0;i < EMSFrameCount;i++) -- 2.39.5