From c35855909ea49cca05fb471fa805c54960667a7d Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 24 Sep 2002 21:48:18 +0000 Subject: [PATCH] Report correct value for people requesting memory allocation strategy. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@300 --- src/dos/dos.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index eca9250c..fae5778c 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -704,7 +704,15 @@ static Bitu DOS_21Handler(void) { LOG_DEBUG("DOS:57:Getting/Setting File Date is faked",reg_ah); break; case 0x58: /* Get/Set Memory allocation strategy */ - LOG_DEBUG("DOS:58:Not Supported Set//Get memory allocation"); + switch (reg_al) { + case 0: /* Get Strategy */ + reg_ax=0; //Low memory first fit + break; + case 1: /* Set Strategy */ + break; + default: + LOG_DEBUG("DOS:58:Not Supported Set//Get memory allocation call %X",reg_al); + } break; case 0x59: /* Get Extended error information */ reg_ax=dos.errorcode;