From 229e81304ba78bc2f46fd7b899f524b59bb0952e Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 31 Mar 2004 22:01:22 +0000 Subject: [PATCH] Added functions 5a-00 for all the warlords 2 deluxe fans Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1751 --- src/ints/ems.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ints/ems.cpp b/src/ints/ems.cpp index 65cdd3a5..0430fdf1 100644 --- a/src/ints/ems.cpp +++ b/src/ints/ems.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: ems.cpp,v 1.31 2004-02-02 20:23:54 qbix79 Exp $ */ +/* $Id: ems.cpp,v 1.32 2004-03-31 22:01:22 harekiet Exp $ */ #include #include @@ -571,6 +571,14 @@ static Bitu INT67_Handler(void) { reg_cx = EMM_MAX_PHYS; reg_ah = EMM_NO_ERROR; break; + case 0x5A: /* Allocate standard/raw Pages */ + if (reg_al==0x00) { + reg_ah=EMM_AllocateMemory(reg_bx,reg_dx); + } else { + LOG(LOG_MISC,LOG_ERROR)("EMS:Call 5A subfct %2X not supported",reg_al); + reg_ah=EMM_FUNC_NOSUP; + }; + break; case 0xDE: /* VCPI Functions */ LOG(LOG_MISC,LOG_ERROR)("EMS:VCPI Call %2X not supported",reg_al); reg_ah=EMM_FUNC_NOSUP;