From 0d72ebd7f61eb31eceea4d230e90e29d3a8fc940 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 11 Jun 2004 12:09:50 +0000 Subject: [PATCH] Switched fake memory allocation. Makes pharlab happy again Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1829 --- src/dos/dos_tables.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dos/dos_tables.cpp b/src/dos/dos_tables.cpp index e45fa3f3..d3f55ff8 100644 --- a/src/dos/dos_tables.cpp +++ b/src/dos/dos_tables.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_tables.cpp,v 1.11 2004-06-10 08:48:53 qbix79 Exp $ */ +/* $Id: dos_tables.cpp,v 1.12 2004-06-11 12:09:50 qbix79 Exp $ */ #include "dosbox.h" #include "mem.h" @@ -79,12 +79,12 @@ void DOS_SetupTables(void) { real_writew(0x54,0x20+0x00, (Bit16u) 0x4f43); real_writew(0x54,0x20+0x02, (Bit16u) 0x204e); - /* Allocate DCBS DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE */ - dos.tables.dcbs=RealMake(DOS_GetMemory(3),0); - mem_writew(Real2Phys(dos.tables.dcbs),0); //empty table - /* Allocate some fake memory else pharlab doesn't like the indos pointer */ - sdaseg=DOS_GetMemory(12); + /* Pharlab seems to real picky. So don't change this unless needed (the amount of allocated memory that is) */ + /* Allocate DCBS DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE */ + dos.tables.dcbs=RealMake(DOS_GetMemory(12),0); + mem_writew(Real2Phys(dos.tables.dcbs),0); //empty table + sdaseg=DOS_GetMemory(3); DOS_SDA(sdaseg,0).Init(); }