From a28f5d4698a4d4ae8b24676949012f555b8f5b64 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 19 Oct 2002 15:46:57 +0000 Subject: [PATCH] Use the xmssize property under the dos section now. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@348 --- src/ints/xms.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ints/xms.cpp b/src/ints/xms.cpp index 026a497d..d89b3121 100644 --- a/src/ints/xms.cpp +++ b/src/ints/xms.cpp @@ -327,7 +327,9 @@ foundnew: void XMS_Init(Section* sec) { Section_prop * section=static_cast(sec); - if(!section->Get_bool("STATUS")) return; + Bitu size=section->Get_int("xmssize"); + if (!size) return; + if (size>C_MEM_MAX_SIZE-1) size=C_MEM_MAX_SIZE-1; DOS_AddMultiplexHandler(multiplex_xms); call_xms=CALLBACK_Allocate(); CALLBACK_Setup(call_xms,&XMS_Handler,CB_RETF); @@ -348,6 +350,6 @@ void XMS_Init(Section* sec) { /* Setup the 1st handle */ xms_handles[1].active=true; xms_handles[1].phys=1088*1024; /* right behind the hma area */ - xms_handles[1].size=C_MEM_XMS_SIZE*1024-64; + xms_handles[1].size=size*1024-64; }