* Module: All Modules\r
* Author(s): Chris Somers\r
* Date: December 1, 1992\r
- * Version: V.1.1\r
+ * Version: V.1.1w\r
\r
minor mods by Alex Russell to simplify\r
\r
- Must use memory model with FAR code\r
+ Must use memory model with FAR code
+
+ Open Watcom patch by sparky4~\r
\r
*/\r
\r
exit(1);\r
}\r
else\r
- printf("Emm %x available\n", EMVer());\r
+ printf("Emm %x available\n", EMVer());
+ printf("EMS pages available are %lu\n", EMMCoreLeft());\r
\r
pEmmData = (char *)EMMalloc(&hEData, 6); // get 6 * 16K bytes - 96K\r
if ( pEmmData == NULL )\r
End:
}
if(!interr)
- RtnVal = ((unsigned long)Pages << 14); /* Pages * 16K rtns bytes*/\r
+ RtnVal = ((unsigned long)Pages); /* Pages * 16K rtns bytes*/
\r
return(RtnVal);\r
} /* End of EMMCoreLeft() */\r
*Handle = NOTREADY;\r
return(NULL);\r
}\r
- if ((Pages < 1) || (Pages > 1020)) {\r
+ if ((Pages < 1) || (Pages > EMMCoreLeft())) {\r
*Handle = VALUE_OUTF_RANGE;\r
return (NULL);\r
}\r
* Module: All Modules\r
* Author(s): Chris Somers\r
* Date: August 5, 1993\r
- * Version: V.1.1\r
+ * Version: V.1.1w\r
\r
- modified by Alex Russell to simplify.\r
+ modified by Alex Russell to simplify.
+
+ Open Watcom patch by sparky4~\r
*/\r
\r
\r