1
0
Fork 0

zero reported extended memory size if xms/ems/dpmi is loaded

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1437
This commit is contained in:
Sjoerd van der Berg 2003-11-14 00:04:27 +00:00
parent b6a4b0fb5c
commit 8f5af81299
4 changed files with 18 additions and 6 deletions

View file

@ -26,6 +26,7 @@
#include "setup.h"
#include "inout.h"
#include "xms.h"
#include "bios.h"
#define XMS_HANDLES 50 /* 50 XMS Memory Blocks */
#define XMS_VERSION 0x0300 /* version 3.00 */
@ -334,7 +335,7 @@ void XMS_Init(Section* sec) {
Section_prop * section=static_cast<Section_prop *>(sec);
if (!section->Get_bool("xms")) return;
Bitu i;
BIOS_ZeroExtendedSize();
DOS_AddMultiplexHandler(multiplex_xms);
call_xms=CALLBACK_Allocate();
CALLBACK_Setup(call_xms,&XMS_Handler,CB_RETF);