1
0
Fork 0

Switched fake memory allocation. Makes pharlab happy again

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1829
This commit is contained in:
Peter Veenstra 2004-06-11 12:09:50 +00:00
parent 8643400dc4
commit 0d72ebd7f6

View file

@ -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();
}