From ee131d244bbe9f5cc5bd561b4f254f2d418689bb Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 19 Oct 2002 15:47:14 +0000 Subject: [PATCH] Use the emssize property under dos section now. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@349 --- src/ints/ems.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ints/ems.cpp b/src/ints/ems.cpp index 164a7094..1175ae95 100644 --- a/src/ints/ems.cpp +++ b/src/ints/ems.cpp @@ -442,7 +442,7 @@ static Bitu INT67_Handler(void) { reg_ah = EMM_NO_ERROR; break; case 0xDE: /* VCPI Functions */ - LOG_ERROR("VCPI Functions not supported"); + LOG_ERROR("VCPI Functions %X not supported",reg_al); reg_ah=EMM_FUNC_NOSUP; break; default: @@ -457,7 +457,8 @@ static Bitu INT67_Handler(void) { void EMS_Init(Section* sec) { Section_prop * section=static_cast(sec); - if(!section->Get_bool("STATUS")) return; + Bitu size=section->Get_int("emssize"); + if (!size) return; call_int67=CALLBACK_Allocate(); CALLBACK_Setup(call_int67,&INT67_Handler,CB_IRET); /* Register the ems device */