\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
#ifdef __BORLANDC__\r
}\r
#endif\r
- End:\r
+ Endme:\r
#ifdef __WATCOMC__\r
}\r
#endif\r
\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